class_docstr: Returned by :func:`SVMPointer.map` and :func:`SVM.map`.
  This class may also be used as a context manager in a ``with`` statement.
  :meth:`release` will be called upon exit from the ``with`` region.
  The value returned to the ``as`` part of the context manager is the
  mapped Python object (e.g. a :mod:`numpy` array).
  
  .. versionadded:: 2016.2
  
  .. property:: event
  
      The :class:`Event` returned when mapping the memory.
  
  .. automethod:: release
class_docstr_tok: ["Returned","by",":","func",":","`","SVMPointer.map","`","and",":","func",":","`","SVM.map","`",".","This","class","may","also","be","used","as","a","context","manager","in","a","``","with","``","statement",".",":","meth",":","`","release","`","will","be","called","upon","exit","from","the","``","with","``","region",".","The","value","returned","to","the","``","as","``","part","of","the","context","manager","is","the","mapped","Python","object","(","e.g",".","a",":","mod",":","`","numpy","`","array",")",".","..","versionadded",":",":","2016.2","..","property",":",":","event","The",":","class",":","`","Event","`","returned","when","mapping","the","memory",".","..","automethod",":",":","release"]
code: def __del__(self):
      if self.svm is not None:
          self.release()
  
imports: from sys import intern
  from warnings import warn
  from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
  from pyopencl.version import VERSION, VERSION_STATUS, VERSION_TEXT
  import pyopencl.cltypes
  import logging
  import os
  import numpy
  import sys
  from pyopencl._cl import get_cl_header_version, program_kind, status_code, platform_info, device_type, device_info, device_topology_type_amd, device_fp_config, device_mem_cache_type, device_local_mem_type, device_exec_capabilities, device_svm_capabilities, command_queue_properties, context_info, gl_context_info, context_properties, command_queue_info, queue_properties, mem_flags, svm_mem_flags, channel_order, channel_type, mem_object_type, mem_info, image_info, pipe_info, pipe_properties, addressing_mode, filter_mode, sampler_info, sampler_properties, map_flags, program_info, program_build_info, program_binary_type, kernel_info, kernel_arg_info, kernel_arg_address_qualifier, kernel_arg_access_qualifier, kernel_arg_type_qualifier, kernel_work_group_info, kernel_sub_group_info, event_info, command_type, command_execution_status, profiling_info, mem_migration_flags, device_partition_property, device_affinity_domain, device_atomic_capabilities, device_device_enqueue_capabilities, version_bits, khronos_vendor_id, Error, MemoryError, LogicError, RuntimeError, Platform, get_platforms, Device, Context, CommandQueue, LocalMemory, MemoryObjectHolder, MemoryObject, MemoryMap, Buffer, _Program, Kernel, Event, wait_for_events, NannyEvent, enqueue_nd_range_kernel, _enqueue_marker, _enqueue_read_buffer, _enqueue_write_buffer, _enqueue_copy_buffer, _enqueue_read_buffer_rect, _enqueue_write_buffer_rect, _enqueue_copy_buffer_rect, _enqueue_read_image, _enqueue_copy_image, _enqueue_write_image, _enqueue_copy_image_to_buffer, _enqueue_copy_buffer_to_image, have_gl, ImageFormat, get_supported_image_formats, Image, Sampler, Pipe
  import inspect
label_desc: Use image node_id 2 for calling the SVMMap obj's underlying member method code with example usage: obj.__del__() without return types