code: def test_invalid_devices_with_cpu_accelerator(devices):
      """Test invalid device flag raises MisconfigurationException."""
      with pytest.raises(TypeError, match="should be an int > 0"):
          _parse_cpu_cores(devices)
  
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 5 for calling a global function with example usage: test_invalid_devices_with_cpu_accelerator(devices) without return types