code: def ssh_config(ssh_key, request):
      c = Config()
      c.Cluster.controller_ip = "0.0.0.0"
      c.Cluster.engine_launcher_class = request.param
      engine_set_cfg = c[f"{request.param}EngineSetLauncher"]
      engine_set_cfg.ssh_args = [
          "-o",
          "UserKnownHostsFile=/dev/null",
          "-o",
          "StrictHostKeyChecking=no",
          "-i",
          ssh_key,
      ]
      engine_set_cfg.scp_args = list(engine_set_cfg.ssh_args)  # copy
      engine_set_cfg.remote_python = "/opt/conda/bin/python3"
      engine_set_cfg.remote_profile_dir = (
          "/home/ciuser/.ipython/profile_default"
      )
      engine_set_cfg.engine_args = ["--debug"]
      c.SSHProxyEngineSetLauncher.hostname = "127.0.0.1"
      c.SSHProxyEngineSetLauncher.ssh_args.append("-p2222")
      c.SSHProxyEngineSetLauncher.scp_args.append("-P2222")
      c.SSHProxyEngineSetLauncher.user = "ciuser"
      c.SSHEngineSetLauncher.engines = {"ciuser@127.0.0.1:2222": 4}
      return c
  
file_path: ipyparallel/ipyparallel/tests/test_ssh.py
imports: from functools import partial
  import pytest
  from traitlets.config import Config
  from .conftest import Cluster
  from .test_cluster import test_get_output
  from .test_cluster import test_restart_engines
  from .test_cluster import test_signal_engines
  from .test_cluster import test_start_stop_cluster
  from .test_cluster import test_to_from_dict
label_desc: Use image node_id 1 for calling a global function with example usage: ssh_config(ssh_key, request) and returns: c