class_docstr: DGL context strucure.
code: def __new__(cls, device_type, device_id):
      if (device_type, device_id) in cls._cache:
          return cls._cache[(device_type, device_id)]
  
      inst = super(DGLContext, cls).__new__(DGLContext)
  
      inst.device_type = device_type
      inst.device_id = device_id
  
      cls._cache[(device_type, device_id)] = inst
      return inst
  
imports: from __future__ import absolute_import
  import ctypes
  import json
  import numpy
  from ..None import _api_internal
  from .base import _LIB, check_call
label_desc: Use image node_id 1 for calling the DGLContext obj's underlying member method code with example usage: obj.__new__(cls, device_type, device_id) and returns: inst, cls