code: def _is_excluded(filename, exclusions):
      
      for exclusion in exclusions:
          if fnmatch(filename, exclusion):
              return True
  
      return False
docs: Return true if filename matches any of exclusions.