code: def iter_stdout(proc, cmd, tmpdir):
      for l in proc.stdout:
          yield l[:-1]
      retcode = proc.wait()
      if tmpdir:
          shutil.rmtree(tmpdir)
      if retcode:
          raise sp.CalledProcessError(retcode, cmd)
  
imports: import _io
  import sys
  import os
  import subprocess
  import inspect
  import shutil
  import stat
  import tempfile
  import threading
  from snakemake.utils import format, argvquote, cmd_exe_quote
  from snakemake.common import ON_WINDOWS, RULEFUNC_CONTEXT_MARKER
  from snakemake.logging import logger
  from snakemake.deployment import singularity
  from snakemake.deployment.conda import Conda
  from snakemake.exceptions import WorkflowError
label_desc: Use image node_id 11 for calling the shell obj's underlying member method code with example usage: obj.iter_stdout(proc, cmd, tmpdir) without return types