code: def get_available_gpus(session_config=None):
      # based on recipe from https://stackoverflow.com/a/38580201
  
      # Unless we allocate a session here, subsequent attempts to create one
      # will ignore our custom config (in particular, allow_growth=True will have
      # no effect).
      if session_config is None:
          session_config = get_session()._config
  
      from tensorflow.python.client import device_lib
  
      local_device_protos = device_lib.list_local_devices(
          session_config
      )
      return [
          x.name for x in local_device_protos if x.device_type == "GPU"
      ]
  
imports: import numpy
  import tensorflow
  import copy
  import os
  import functools
  import collections
  import multiprocessing
label_desc: Use image node_id 20 for calling a global function with example usage: get_available_gpus(session_config) and returns: unknown