code: def iter_subtree(path):
      """Recursively yield all files in a subtree, depth-first"""
      if not path.is_dir():
          if path.is_file():
              yield path
          return
      for item in path.iterdir():
          if item.is_dir():
              yield from iter_subtree(item)
          elif item.is_file():
              yield item
  
file_path: metaflow/metaflow/vendor.py
imports: import glob
  import shutil
  import subprocess
  import re
  from functools import partial
  from itertools import chain
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: iter_subtree(path) without return types