code: def iter_stdout(cmd):
      p = subprocess.Popen(
          cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT
      )
  
      try:
          for line in iter(p.stdout.readline, b""):
              yield line.decode().rstrip()
      finally:
          retcode = p.wait()
          if retcode:
              raise subprocess.CalledProcessError(retcode, cmd[0])
  
imports: import os
  import re
  import subprocess
label_desc: Use image node_id 2 for calling a global function with example usage: iter_stdout(cmd) without return types