code: def any_match(self, urls):
          
          return any(urlparse(u).hostname in self for u in urls)
docs: Check if any of the given URLs has a matching host.
  
          :param urls: an iterable containing URLs
          :returns: True if any host has a listed match
          :raises InvalidURLError: if there are any invalid URLs in
          the sequence