code: def test_old_ssh_with_local_dir(loop):
      from distributed.deploy.old_ssh import SSHCluster as OldSSHCluster
  
      with OldSSHCluster(
          scheduler_addr="127.0.0.1",
          scheduler_port=7437,
          worker_addrs=["127.0.0.1", "127.0.0.1"],
          local_directory="/tmp",
      ) as c:
          assert len(c.workers) == 2
          with Client(c) as client:
              result = client.submit(lambda x: x + 1, 10)
              result = result.result()
              assert result == 11
  
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 4 for calling a global function with example usage: test_old_ssh_with_local_dir(loop) without return types