def METHOD_NAME() -> int:
    r"""Returns total GPU memory allocated by Metal driver for the process in bytes.
    .. note::
       The returned size includes cached allocations in MPSAllocator pools
       as well as allocations from MPS/MPSGraph frameworks.
    """
    return torch._C._mps_driverAllocatedMemory()