code: def num_gpus() -> int:
      return len(tf.config.list_physical_devices("GPU"))
  
imports: import tensorflow
  from typing import Union, Optional
  import ivy
  from ivy.functional.ivy.device import Profiler
label_desc: Use image node_id 7 for calling a global function with example usage: num_gpus() and returns: len