code: def fix_filenames(filenames, relroot=USE_CWD):
      if not relroot or relroot is USE_CWD:
          filenames = (os.path.abspath(v) for v in filenames)
      else:
          relroot = os.path.abspath(relroot)
          filenames = (_fix_filename(v, relroot) for v in filenames)
      return filenames, relroot
  
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 4 for calling a global function with example usage: fix_filenames(filenames, relroot) and returns: filenames,  relroot