code: def current_device():
      """Returns the current device.
  
      By default, `mx.cpu()` is used for all the computations
      and it can be overridden by using `with mx.Device(x)` statement where
      x can be cpu(device_id) or gpu(device_id).
  
      Examples
      -------
      >>> mx.current_device()
      cpu(0)
      >>> with mx.Device('gpu', 1):  # Device changed in `with` block.
      ...    mx.current_device()  # Computation done here will be on gpu(1).
      ...
      gpu(1)
      >>> mx.current_device() # Back to default device.
      cpu(0)
  
      Returns
      -------
      default_device : Device
      """
      return _current.get()
  
file_path: mxnet/python/mxnet/device.py
imports: import contextvars
  import ctypes
  from .base import _LIB
  from .base import check_call
label_desc: Use image node_id 6 for calling a global function with example usage: current_device() and returns: _current