code: def _maybe_write_remote_lock_file(
      remote_run, remote_name, local_run_dir
  ):
      if remote_run.status == "running":
          _write_remote_lock_file(local_run_dir, remote_name)
  
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 7 for calling a global function with example usage: _maybe_write_remote_lock_file(remote_run, remote_name, local_run_dir) without return types