def prepare(self):
        """
        Prepare the indexes and add documents for the test.
        Also store the search results for later comparison.
        """
        self.logger.debug(f"Creating indexes {self.indexes_to_test_on}")
        self.create_indexes(self.indexes_to_test_on)
        all_results = {}
        errors = []  # Collect any errors to report them at the end
        self.logger.debug(f'Embedding documents in {self.indexes_to_test_on}')
        for index in self.indexes_to_test_on:
            try:
                all_results[index['indexName']]  = self.client.index(index_name = index['indexName']).embed(
                content=[
                    "Men shoes brown",
                    {"Large grey hat": 0.7, "https://marqo-assets.s3.amazonaws.com/tests/images/image1.jpg": 0.3}
                ],
                content_type=None
            )
            except Exception as e:
                errors.append((index['indexName'], traceback.format_exc()))
        if errors:
            formatted_errors = [f"Index: {index_name}, Error: {error}" for index_name, error in errors]
            self.logger.error("\n".join(formatted_errors))  # Fail the prepare method with all collected errors

        self.logger.debug(f"Ran prepare method for {self.indexes_to_test_on} inside test class {self.__class__.__name__}")
        self.save_results_to_file(all_results)

        Prepare the indexes and add documents for the test.
        Also store the search results for later comparison.
        
tests/compatibility_tests/embed/test_embed.py