code: def rsync_copy_to(
      src,
      host,
      host_dest,
      user=None,
      private_key=None,
      connect_timeout=DEFAULT_CONNECT_TIMEOUT,
      port=None,
      proxy=None,
  ):
      dest = format_rsync_host_path(host, host_dest, user)
      cmd = (
          ["rsync", "-vr"]  #
          + rsync_ssh_opts(private_key, connect_timeout, port, proxy)  #
          + [src, dest]
      )
      log.debug("rsync cmd: %r", cmd)
      subprocess.check_call(cmd)
  
file_path: guildai/guild/remotes/ssh_util.py
imports: import logging
  import subprocess
  from guild import remote
label_desc: Use image node_id 7 for calling a global function with example usage: rsync_copy_to(src, host, host_dest, user, private_key, connect_timeout, port, proxy) without return types