code: def test_defer_to_old(loop):
      with pytest.warns(
          UserWarning,
          match=r"Note that the SSHCluster API has been replaced\.  "
          r"We're routing you to the older implementation\.  "
          r"This will be removed in the future",
      ):
          c = SSHCluster(
              scheduler_addr="127.0.0.1",
              scheduler_port=7437,
              worker_addrs=["127.0.0.1", "127.0.0.1"],
          )
      with c:
          from distributed.deploy.old_ssh import (
              SSHCluster as OldSSHCluster,
          )
  
          assert isinstance(c, OldSSHCluster)
  
file_path: distributed/distributed/deploy/tests/test_ssh.py
imports: from __future__ import annotations
  import pytest
  import sys
  import dask
  from distributed import Client
  from distributed.compatibility import MACOS, WINDOWS
  from distributed.deploy.ssh import SSHCluster
  from distributed.utils_test import gen_test
label_desc: Use image node_id 3 for calling a global function with example usage: test_defer_to_old(loop) without return types