code: def test_ddp_is_distributed():
      strategy = DDPStrategy()
      with pytest.deprecated_call(match="is deprecated"):
          _ = strategy.is_distributed
  
imports: import sys
  from unittest.mock import Mock
  import lightning.fabric
  import pytest
  import torch.nn
  from lightning.pytorch import Trainer
  from lightning.pytorch.demos.boring_classes import BoringModel
  from lightning.pytorch.plugins.precision.double import LightningDoublePrecisionModule
  from lightning.pytorch.strategies import DDPStrategy, FSDPStrategy
  from tests_pytorch.helpers.runif import RunIf
label_desc: Use image node_id 2 for calling a global function with example usage: test_ddp_is_distributed() without return types