code: def test_unsupported_strategies(tmp_path):
      model = BackboneBoringModel()
      callback = BackboneFinetuning()
      trainer = Trainer(
          accelerator="cpu", strategy="deepspeed", callbacks=[callback]
      )
      with pytest.raises(
          NotImplementedError,
          match="does not support running with the DeepSpeed strategy",
      ):
          callback.setup(trainer, model, stage=None)
  
imports: from collections import OrderedDict
  import pytest
  import torch
  from lightning.fabric.utilities.imports import _TORCH_GREATER_EQUAL_1_13
  from lightning.pytorch import LightningModule, Trainer, seed_everything
  from lightning.pytorch.callbacks import BackboneFinetuning, BaseFinetuning, ModelCheckpoint
  from lightning.pytorch.demos.boring_classes import BoringModel, RandomDataset
  from torch import nn
  from torch.optim import SGD, Optimizer
  from torch.utils.data import DataLoader
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 9 for calling a global function with example usage: test_unsupported_strategies(tmp_path) without return types