code: def num_gpus() -> int:
      return mx.context.num_gpus()
  
file_path: ivy/ivy/functional/backends/mxnet/device.py
imports: import mxnet
  from typing import Union, Optional
  import ivy
  from ivy.functional.ivy.device import Profiler
  from ivy.utils.exceptions import IvyNotImplementedException
label_desc: Use image node_id 6 for calling a global function with example usage: num_gpus() and returns: mx