code: def test_get_parallel_devices_invalid_request(devices):
      with pytest.raises(
          MisconfigurationException, match="But your machine only has"
      ):
          MPSAccelerator.get_parallel_devices(devices)
  
file_path: pytorch-lightning/tests/tests_fabric/accelerators/test_mps.py
imports: import pytest
  import torch
  from lightning.fabric.accelerators.mps import MPSAccelerator
  from lightning.fabric.utilities.exceptions import MisconfigurationException
  from tests_fabric.helpers.runif import RunIf
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_parallel_devices_invalid_request(devices) without return types