code: def test_root_gpu_property_0_raising(
      mps_count_0, cuda_count_0, devices
  ):
      """Test that asking for a GPU when none are available will result in a MisconfigurationException."""
      with pytest.raises(
          MisconfigurationException,
          match="No supported gpu backend found!",
      ):
          Trainer(accelerator="gpu", devices=devices, strategy="ddp")
  
imports: import os
  from collections import namedtuple
  from unittest import mock
  from unittest.mock import patch
  import pytest
  import torch
  from lightning.fabric.plugins.environments import TorchElasticEnvironment
  from lightning.fabric.utilities.device_parser import _parse_gpu_ids
  from lightning.pytorch import Trainer, seed_everything
  from lightning.pytorch.accelerators import CPUAccelerator, CUDAAccelerator
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.utilities.exceptions import MisconfigurationException
  import tests_pytorch.helpers.pipelines
  from tests_pytorch.helpers.datamodules import ClassifDataModule
  from tests_pytorch.helpers.runif import RunIf
  from tests_pytorch.helpers.simple_models import ClassificationModel
label_desc: Use image node_id 3 for calling a global function with example usage: test_root_gpu_property_0_raising(mps_count_0, cuda_count_0, devices) without return types