code: def get_all_registered_kernels():
      """Returns a KernelList proto of all registered kernels."""
      buf = c_api.TF_GetAllRegisteredKernels()
      data = c_api.TF_GetBuffer(buf)
      kernel_list = kernel_def_pb2.KernelList()
      kernel_list.ParseFromString(compat.as_bytes(data))
      return kernel_list
  
imports: from tensorflow.core.framework import kernel_def_pb2
  from tensorflow.python.client import pywrap_tf_session
  from tensorflow.python.util import compat
label_desc: Use image node_id 1 for calling a global function with example usage: get_all_registered_kernels() and returns: kernel_list