code: def _rsync_ssh_cmd(private_key, connect_timeout, port, proxy):
      parts = ["ssh"]
      if private_key:
          parts.append(f"-i '{private_key}'")
      if connect_timeout:
          parts.append(f"-oConnectTimeout={connect_timeout}")
      if port:
          parts.append(f"-p {port}")
      if proxy:
          parts.append(f"-o 'ProxyCommand {proxy}'")
      return " ".join(parts)
  
file_path: guildai/guild/remotes/ssh_util.py
imports: import logging
  import subprocess
  from guild import remote
label_desc: Use image node_id 10 for calling a global function with example usage: _rsync_ssh_cmd(private_key, connect_timeout, port, proxy) and returns: str