code: def xpy(self):
      if self is MemoryType.host or (
          self is MemoryType.mirror and not GPU_ENABLED
      ):
          return np
      else:
          return cp
  
file_path: cuml/python/cuml/internals/mem_type.py
imports: from enum import Enum, auto
  from cuml.internals.device_support import GPU_ENABLED
  from cuml.internals.safe_imports import cpu_only_import, gpu_only_import
label_desc: Use image node_id 2 for calling the MemoryType obj's underlying member method code with example usage: obj.xpy() and returns: np, cp