code: def update_import(
      stage,
      rev=None,
      to_remote=False,
      remote=None,
      no_download=None,
      jobs=None,
      force=False,
  ):
      stage.deps[0].update(rev=rev)
  
      frozen = stage.frozen
      stage.frozen = False
      changed = stage.changed()
  
      try:
          if to_remote:
              _update_import_on_remote(stage, remote, jobs)
          else:
              stage.reproduce(
                  no_download=no_download, jobs=jobs, force=force
              )
      finally:
          if no_download and changed:
              # Avoid retaining stale information
              stage.outs[0].clear()
          stage.frozen = frozen
  
imports: from dvc.exceptions import InvalidArgumentError
  from dvc.log import logger
label_desc: Use image node_id 2 for calling a global function with example usage: update_import(stage, rev, to_remote, remote, no_download, jobs, force) without return types