code: def glob_tree(
      root,
      *,
      suffix=None,
      _glob=glob.iglob,
  ):
      """Yield each file in the tree under the given directory name.
  
      If "suffix" is provided then only files with that suffix will
      be included.
      """
      suffix = suffix or ""
      if not isinstance(suffix, str):
          raise ValueError("suffix must be a string")
  
      for filename in _glob(f"{root}/*{suffix}"):
          yield filename
      for filename in _glob(f"{root}/**/*{suffix}"):
          yield filename
  
imports: import fnmatch
  import glob
  import os
  import os.path
  import shutil
  import stat
  from .iterutil import iter_many
label_desc: Use image node_id 15 for calling a global function with example usage: glob_tree(root) without return types