def METHOD_NAME(self, name, params=None):
    """
    Test ANN search.
    Args:
        name: backend name
        params: additional config parameters
    Returns:
        search results
    """
    # Generate ANN index
    model = self.backend(name, params)
    # Generate query vector
    query = np.random.rand(300).astype(np.float32)
    self.normalize(query)
    # Ensure top result has similarity > 0
    return model.METHOD_NAME(np.array([query]), 1)[0][0][1]