code: def match(self, name):
          
          for pat in self.pats:
              if fnmatch.fnmatch(name, pat):
                  return True
  
          return False
docs: Returns True if name matches one of the patterns.