code: def default_memory_type(self):
      if self is DeviceType.device:
          return MemoryType.device
      else:
          return MemoryType.host
  
file_path: cuml/python/cuml/internals/device_type.py
imports: from enum import Enum, auto
  from cuml.internals.mem_type import MemoryType
label_desc: Use image node_id 3 for calling the DeviceType obj's underlying member method code with example usage: obj.default_memory_type() and returns: MemoryType, MemoryType