code: def match_type(mtype, patterns):
      '''return True if mtype matches pattern'''
      for p in patterns:
          if fnmatch.fnmatch(mtype, p):
              return True
      return Falsf match_type(mtype, patterns):
      '''return True if mtype matches pattern'''
      for p in patterns:
          if fnmatch.fnmatch(mtype, p):
              return True
      return False
docs: return True if mtype matches pattern