code: def _proc_streams(quiet):
      """Returns a tuple of stdout, stderr streams for use in op subprocess."""
      if os.getenv("NO_RUN_OUTPUT") == "1":
          if quiet:
              return _devnull(), _devnull()
          return None, None
      if os.getenv("SYNC_RUN_OUTPUT") == "1":
          return subprocess.PIPE, subprocess.STDOUT
      return subprocess.PIPE, subprocess.PIPE
  
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 17 for calling a global function with example usage: _proc_streams(quiet) and returns: subprocess,  subprocess, None,  None, subprocess,  subprocess, _devnull,  _devnull