code: def test_single_gpu_model(tmpdir, devices):
      """Make sure single GPU works."""
      trainer_options = {
          "default_root_dir": tmpdir,
          "enable_progress_bar": False,
          "max_epochs": 1,
          "limit_train_batches": 0.1,
          "limit_val_batches": 0.1,
          "accelerator": "mps",
          "devices": devices,
      }
  
      model = BoringModel()
      tpipes.run_model_test(trainer_options, model)
  
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 5 for calling a global function with example usage: test_single_gpu_model(tmpdir, devices) without return types