code: def _verify_strategy_supports_compile(
      model: "pl.LightningModule", strategy: Strategy
  ) -> None:
      if model._compiler_ctx is not None:
          supported_strategies = (
              SingleDeviceStrategy,
              DDPStrategy,
              FSDPStrategy,
          )
          if not isinstance(
              strategy, supported_strategies
          ) or isinstance(strategy, DeepSpeedStrategy):
              supported_strategy_names = ", ".join(
                  s.__name__ for s in supported_strategies
              )
              raise RuntimeError(
                  f"Using a compiled model is incompatible with the current strategy: `{type(strategy).__name__}`."
                  f" Only {supported_strategy_names} support compilation. Either switch to one of the supported"
                  " strategies or avoid passing in compiled model."
              )
  
file_path: pytorch-lightning/src/lightning/pytorch/utilities/compile.py
imports: from typing import Union
  import torch
  import lightning.pytorch
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_2_0, _TORCH_GREATER_EQUAL_2_1
  from lightning.pytorch.strategies import DDPStrategy, DeepSpeedStrategy, FSDPStrategy, SingleDeviceStrategy, Strategy
  from lightning.pytorch.utilities.model_helpers import _check_mixed_imports
label_desc: Use image node_id 4 for calling a global function with example usage: _verify_strategy_supports_compile(model, strategy) without return types