code: def test_parse_gpu_fail_on_non_existent_id(_, devices):
      with pytest.raises((TypeError, 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 4 for calling a global function with example usage: test_parse_gpu_fail_on_non_existent_id(_, devices) without return types