code: def __enter__(self):
      self.prev_mem_type = GlobalSettings().memory_type
      set_global_memory_type(self.mem_type)
  
imports: import functools
  import operator
  import re
  from functools import wraps
  from cuml.internals.global_settings import GlobalSettings
  from cuml.internals.device_support import GPU_ENABLED
  from cuml.internals.mem_type import MemoryType
  from cuml.internals.output_type import INTERNAL_VALID_OUTPUT_TYPES, VALID_OUTPUT_TYPES
  from cuml.internals.safe_imports import cpu_only_import_from, gpu_only_import_from, UnavailableNullContext
label_desc: Use image node_id 2 for calling the using_memory_type obj's underlying member method code with example usage: obj.__enter__() without return types