code: def Context(*args, **kwargs):
      """This class has been deprecated. Please refer to ``device.Device``."""
      warn(
          "Directly use Context class to construct a device will be deprecated. "
          "Please use Device class instead. ",
          DeprecationWarning,
      )
      return Device(*args, **kwargs)
  
imports: from warnings import warn
  from .device import Device, _current, cpu, gpu, cpu_pinned
  from .device import num_gpus, gpu_memory_info
label_desc: Use image node_id 1 for calling a global function with example usage: Context() and returns: Device