parameters: (self)
return_statement: return Context.devtype2str[self.device_typeid]
docstring: Returns the device type of current context.
  
          Examples
          -------
          >>> mx.context.current_context().device_type
          'cpu'
          >>> mx.current_context().device_type
          'cpu'
  
          Returns
          -------
          device_type : str
docstring_summary: Returns the device type of current context.
docstring_tokens: Returns the device type of current context .
function: def device_type(self):
          """Returns the device type of current context.
  
          Examples
          -------
          >>> mx.context.current_context().device_type
          'cpu'
          >>> mx.current_context().device_type
          'cpu'
  
          Returns
          -------
          device_type : str
          """
          return Context.devtype2str[self.device_typeid]
function_tokens: def device_type ( self ) : return Context . devtype2str [ self . device_typeid ]