code: def test_init_device_with_wrong_device_type():
      with pytest.raises(ValueError, match="Device should be CUDA"):
          CUDAAccelerator().setup_device(torch.device("cpu"))
  
file_path: pytorch-lightning/tests/tests_fabric/accelerators/test_cuda.py
imports: import importlib
  import logging
  import os
  from re import escape
  from unittest import mock
  from unittest.mock import Mock
  import lightning.fabric
  import pytest
  import torch
  from lightning.fabric.accelerators.cuda import CUDAAccelerator, _check_cuda_matmul_precision, find_usable_cuda_devices, is_cuda_available, num_cuda_devices
  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