def METHOD_NAME(self):
    """
    Test an index with image encoder
    """
    # Create an index for the list of images
    self.embeddings.index(self.data)
    result = self.embeddings.search("select id, object from txtai where similar('universe') limit 1")[0]
    self.assertTrue(result["id"].endswith("stars.jpg"))
    self.assertTrue(isinstance(result["object"], Image.Image))