code: def test_get_mps_stats():
      current_device = torch.device("mps")
      device_stats = MPSAccelerator().get_device_stats(current_device)
      fields = ["M1_vm_percent", "M1_percent", "M1_swap_percent"]
  
      for f in fields:
          assert any(f in h for h in device_stats)
  
file_path: pytorch-lightning/tests/tests_pytorch/accelerators/test_mps.py
imports: from collections import namedtuple
  import pytest
  import torch
  from lightning.pytorch import Trainer
  from lightning.pytorch.accelerators import MPSAccelerator
  from lightning.pytorch.demos.boring_classes import BoringModel
  import tests_pytorch.helpers.pipelines
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_mps_stats() without return types