code: def match_uriinfo(cls, info):
          
          items = sorted(
              cls._entries.items(),
              key=lambda matcher_entries: matcher_entries[0].priority,
              reverse=True,
          )
          for matcher, value in items:
              if matcher.matches(info):
                  return (matcher, info)
  
          return (None, [])
docs: :param info: an :py:class:`~httpretty.core.URIInfo`
          :returns: a 2-item tuple: (:py:class:`~httpretty.core.URLMatcher`, :py:class:`~httpretty.core.URIInfo`) or ``(None, [])``