code: def _stage_run_proc_env(op, run):
      env = _op_proc_env(op, run)
      skip_env = ("PWD", "_")
      with open(run.guild_path("ENV"), "w") as out:
          for name in sorted(env):
              if name in skip_env:
                  continue
              out.write(
                  f"export {name}={util.env_var_quote(env[name])}\n"
              )
  
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 6 for calling a global function with example usage: _stage_run_proc_env(op, run) without return types