code: def test_tuner_with_distributed_strategies():
      """Test that an error is raised when tuner is used with multi-device strategy."""
      trainer = Trainer(devices=2, strategy="ddp", accelerator="cpu")
      tuner = Tuner(trainer)
      model = BoringModel()
  
      with pytest.raises(
          ValueError, match=r"not supported with distributed strategies"
      ):
          tuner.scale_batch_size(model)
  
file_path: pytorch-lightning/tests/tests_pytorch/tuner/test_tuning.py
imports: import pytest
  from lightning.pytorch import Trainer
  from lightning.pytorch.callbacks import BatchSizeFinder, LearningRateFinder
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.tuner.tuning import Tuner
label_desc: Use image node_id 1 for calling a global function with example usage: test_tuner_with_distributed_strategies() without return types