code: def sync(args):
      """Synchronize remote runs.
  
      A remote run is an operation that runs on another system. Guild
      keeps track of where each remote run is located and can
      synchronize with it. This includes downloading files generated by
      the run as well as updating run status.
  
      By default, Guild synchronizes once with the remote run and
      exits. If you want to automatically synchronize with the run while
      watching its output, use the `--watch` option.
  
      You can only watch one running operation at a time. If you don't
      specify a RUN with the `--watch` option, Guild will watch the most
      recently started running operation.
  
      When a remote status stops (it finished successfully, is
      terminated, or exits with an error), Guild will no longer
      synchronize with it.
  
      You can synchronize specific runs using `RUN` arguments. For more
      information, see SPECIFYING RUNS and FILTERING topics.
  
      {{ runs_support.runs_arg }}
  
      If a `RUN` argument is not specified, ``:`` is assumed (all runs
      are selected).
  
      {{ runs_support.common_filters }}
      """
      from . import sync_impl
  
      sync_impl.main(args)
  
label_desc: Use image node_id 1 for calling a global function with example usage: sync(args) without return types