code: def iter_tracebacks(logdir):
      """Return an iterator over each file path and
      traceback field inside `logdir`.
      Parameters
      ----------
      logdir: str
          Path to the log folder.
  
      field: str
          Field name to be read from the crash file.
  
      Yields
      ------
      path_file: str
  
      traceback: str
      """
      crash_files = sorted(glob(op.join(logdir, "*.pkl*")))
  
      for cf in crash_files:
          yield cf, load_pklz_traceback(cf)
  
file_path: nipype/nipype/scripts/crash_files.py
imports: import re
  import sys
  import os.path
  from glob import glob
  from traits.trait_errors import TraitError
  from nipype.utils.filemanip import loadcrash
label_desc: Use image node_id 2 for calling a global function with example usage: iter_tracebacks(logdir) without return types