code: def _set(repo: "Repo", target, frozen):
      stage = repo.stage.get_target(target)
      stage.frozen = frozen
      stage.dump(update_lock=False)
  
      return stage
  
imports: import typing
  from .None import locked
label_desc: Use image node_id 1 for calling a global function with example usage: _set(repo, target, frozen) and returns: stage