code: def execute(cmd):
      popen = subprocess.Popen(
          cmd, stdout=subprocess.PIPE, universal_newlines=True
      )
      for stdout_line in iter(popen.stdout.readline, ""):
          yield stdout_line
      popen.stdout.close()
      return_code = popen.wait()
      if return_code:
          raise subprocess.CalledProcessError(return_code, cmd)
  
imports: import os
  import numpy
  import nibabel
  import nrrd
  import pydicom
  import subprocess
  from collections import defaultdict
  from imageio import imwrite, imread
  from deepneuro.utilities.util import grab_files_recursive, quotes
label_desc: Use image node_id 20 for calling a global function with example usage: execute(cmd) without return types