code: def test_init_device_with_wrong_device_type():
      with pytest.raises(ValueError, match="Device should be MPS"):
          MPSAccelerator().setup_device(torch.device("cpu"))
  
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 3 for calling a global function with example usage: test_init_device_with_wrong_device_type() without return types