code: def _op_init_pending_run(op, run_dir):
      run_dir = run_dir or op.run_dir
      run = op_util.init_run(run_dir)
      log.debug("initializing run in %s", run.dir)
      run.init_skel()
      op_util.set_run_pending(run)
      return run
  
imports: import logging
  import os
  import subprocess
  import time
  from guild import config
  from guild import exit_code
  from guild import log
  from guild import op_dep
  from guild import op_util
  from guild import run
  from guild import util
label_desc: Use image node_id 3 for calling a global function with example usage: _op_init_pending_run(op, run_dir) and returns: run