code: def _remote_run_for_local_run(local_run):
      remote_lock = remote_run_support.lock_for_run(local_run)
      if not remote_lock:
          return None
      remote = _remote_for_lock(remote_lock, local_run)
      if not remote:
          return None
      return _remote_run(remote, local_run.id)
  
file_path: guildai/guild/commands/sync_impl.py
imports: import logging
  import time
  from guild import cli
  from guild import click_util
  from guild import remote
  from guild import remote_run_support
  from .None import remote_impl_support
  from .None import runs_impl
label_desc: Use image node_id 4 for calling a global function with example usage: _remote_run_for_local_run(local_run) and returns: _remote_run, None, None