code: def match_any(patterns, name):
      # type: (Iterable[Text], Text) -> bool
      
      if not patterns:
          return True
      return any(match(pattern, name) for pattern in patterns)
docs: Test if a name matches any of a list of patterns.
  
      Will return `True` if ``patterns`` is an empty list.
  
      Arguments:
          patterns (list): A list of wildcard pattern, e.g ``["*.py",
              "*.pyc"]``
          name (str): A filename.
  
      Returns:
          bool: `True` if the name matches at least one of the patterns.