code: def lock_for_run(run):
      raw = _raw_lock_for_run(run)
      if not raw:
          return None
      remote_name, config = _parse_lock(raw)
      return RemoteLock(remote_name, config)
  
label_desc: Use image node_id 1 for calling a global function with example usage: lock_for_run(run) and returns: RemoteLock, None