def METHOD_NAME(self, query, options):
    index_url = options.index
    with self._build_session(options) as session:
        transport = PipXmlrpcTransport(index_url, session)
        pypi = xmlrpc_client.ServerProxy(index_url, transport)
        hits = pypi.METHOD_NAME({'name': query, 'summary': query}, 'or')
        return hits