def test_unstructured_index_schema_random_model(self):
        """A test for the unstructured Vespa schema generation with a random model."""
        index_name = "test_unstructured_schema"

        test_marqo_index_request = self.unstructured_marqo_index_request(
            name=index_name,
            hnsw_config=HnswConfig(ef_construction=512, m=16),
            distance_metric=DistanceMetric.PrenormalizedAngular
        )

        test_unstructured_schema_object = UnstructuredVespaSchema(test_marqo_index_request)

        generated_schema, _ = test_unstructured_schema_object.generate_schema()

        expected_schema = self._read_schema_from_file('test_schemas/unstructured_vespa_index_schema.sd')
        self.assertEqual(
            self._remove_whitespace_in_schema(expected_schema),
            self._remove_whitespace_in_schema(generated_schema)
        )
A test for the unstructured Vespa schema generation with a random model.
tests/integ_tests/core/unstructured_vespa_index/test_unstructured_vespa_schema.py