code: def test_nprocs_attribute_is_deprecated():
      with SSHCluster(
          scheduler_addr="127.0.0.1",
          scheduler_port=8687,
          worker_addrs=["127.0.0.1", "127.0.0.1"],
      ) as c:
          assert c.n_workers == 1
          with pytest.warns(
              FutureWarning, match="renamed to n_workers"
          ):
              assert c.nprocs == 1
          with pytest.warns(
              FutureWarning, match="renamed to n_workers"
          ):
              c.nprocs = 3
  
          assert c.n_workers == 3
  
file_path: distributed/distributed/deploy/tests/test_old_ssh.py
imports: from __future__ import annotations
  from time import sleep
  import pytest
  from distributed import Client
  from distributed.deploy.old_ssh import SSHCluster
  from distributed.metrics import time
label_desc: Use image node_id 3 for calling a global function with example usage: test_nprocs_attribute_is_deprecated() without return types