code: def expand_filenames(filenames):
      for filename in filenames:
          # XXX Do we need to use glob.escape (a la commit 9355868458, GH-20994)?
          if "**/" in filename:
              yield from glob.glob(filename.replace("**/", ""))
          yield from glob.glob(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 10 for calling a global function with example usage: expand_filenames(filenames) without return types