code: def caching_allocator_delete(mem_ptr):
      r"""Delete memory allocated using the CUDA memory allocator.
  
      Memory allocated with :func:`~torch.cuda.caching_allocator_alloc`.
      is freed here. The associated device and stream are tracked inside
      the allocator.
  
      Args:
          mem_ptr (int): memory address to be freed by the allocator.
  
      .. note::
          See :ref:`cuda-memory-management` for more details about GPU memory
          management.
      """
      torch._C._cuda_cudaCachingAllocator_raw_delete(mem_ptr)
  
imports: import collections
  import contextlib
  import ctypes
  import pickle
  import sys
  import warnings
  from inspect import signature
  from typing import Any, Dict, Optional, Tuple, Union
  import torch
  from torch import _C
  from torch.types import Device
  from .None import _get_device_index, _get_nvml_device_index, _lazy_init, is_initialized
  from ._memory_viz import memory, segments
  from ._utils import _dummy_type
label_desc: Use image node_id 4 for calling a global function with example usage: caching_allocator_delete(mem_ptr) without return types