def METHOD_NAME(self):
    """
    Test an index with pickle encoder
    """
    try:
        # Set pickle encoder
        self.embeddings.config["objects"] = "pickle"
        data = [(0, {"object": [1, 2, 3, 4, 5], "text": "default test"}, None)]
        # Create an index
        self.embeddings.index(data)
        result = self.embeddings.search("select object from txtai limit 1")[0]
        self.assertEqual(result["object"], [1, 2, 3, 4, 5])
    finally:
        self.embeddings.config["objects"] = "image"