code: def test_init_device_with_wrong_device_type():
      with pytest.raises(ValueError, match="Device should be CPU"):
          CPUAccelerator().setup_device(torch.device("cuda"))
  
file_path: pytorch-lightning/tests/tests_fabric/accelerators/test_cpu.py
imports: import pytest
  import torch
  from lightning.fabric.accelerators.cpu import CPUAccelerator, _parse_cpu_cores
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