code: def test_parse_gpu_returns_none_when_no_devices_are_available(
      _, devices
  ):
      with pytest.raises(MisconfigurationException):
          device_parser._parse_gpu_ids(devices, include_cuda=True)
  
file_path: pytorch-lightning/tests/tests_fabric/utilities/test_device_parser.py
imports: from unittest import mock
  import pytest
  from lightning.fabric.utilities import device_parser
  from lightning.fabric.utilities.exceptions import MisconfigurationException
label_desc: Use image node_id 6 for calling a global function with example usage: test_parse_gpu_returns_none_when_no_devices_are_available(_, devices) without return types