<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def match(self, name):
 """ Returns True if name matches one of the patterns. """

        for pat in self.pats:
            if fnmatch.fnmatch(name, pat):
                return True

        return False