code: def init_run(op, run_dir=None):
      run = _op_init_pending_run(op, run_dir)
      _op_init_run_attrs(op, run)
      _callback("run_initialized", op, 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 2 for calling a global function with example usage: init_run(op, run_dir) and returns: run