code: def _is_excluded(filename, exclude, include):
      if include:
          for included in include:
              if match_glob(filename, included):
                  return False
          return True
      elif exclude:
          for excluded in exclude:
              if match_glob(filename, excluded):
                  return True
          return False
      else:
          return False
  
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 12 for calling a global function with example usage: _is_excluded(filename, exclude, include) and returns: True, False, False, False, True