code: def set_remote_lock(remote_run, remote_name, runs_dir=None):
      assert isinstance(remote_run, remotelib.RunProxy), remote_run
      local_run_dir = _local_run_dir(remote_run, runs_dir)
      _ensure_deleted_locks(local_run_dir)
      _maybe_write_remote_lock_file(
          remote_run, remote_name, local_run_dir
      )
  
imports: import logging
  import os
  import subprocess
  import sys
  from guild import config
  from guild import file_util
  from guild import log
  from guild import remote
  from guild import util
  from guild import var
label_desc: Use image node_id 2 for calling a global function with example usage: set_remote_lock(remote_run, remote_name, runs_dir) without return types