code: def list_local_devices(session_config=None):
      """List the available devices available in the local process.
  
      Args:
        session_config: a session config proto or None to use the default config.
  
      Returns:
        A list of `DeviceAttribute` protocol buffers.
      """
  
      def _convert(pb_str):
          m = device_attributes_pb2.DeviceAttributes()
          m.ParseFromString(pb_str)
          return m
  
      serialized_config = None
      if session_config is not None:
          serialized_config = session_config.SerializeToString()
      return [
          _convert(s)
          for s in _pywrap_device_lib.list_devices(serialized_config)
      ]
  
imports: from tensorflow.core.framework import device_attributes_pb2
  from tensorflow.python import pywrap_tensorflow
  from tensorflow.python.client import _pywrap_device_lib
label_desc: Use image node_id 1 for calling a global function with example usage: list_local_devices(session_config) and returns: unknown, m