code: def max_memory_allocated(self, device_index=None):
      return torch.mps.driver_allocated_memory()
  
imports: import torch
  from .abstract_accelerator import DeepSpeedAccelerator
label_desc: Use image node_id 25 for calling the MPS_Accelerator obj's underlying member method code with example usage: obj.max_memory_allocated(device_index) and returns: torch