code: def current_allocated_memory() -> int:
      r"""Returns the current GPU memory occupied by tensors in bytes.
  
      .. note::
         The returned size does not include cached allocations in
         memory pools of MPSAllocator.
      """
      return torch._C._mps_currentAllocatedMemory()
  
file_path: pytorch/torch/mps/__init__.py
imports: import torch
  from ..None import Tensor
  from .None import profiler
  from .event import Event
label_desc: Use image node_id 9 for calling a global function with example usage: current_allocated_memory() and returns: torch