def test_modalities_match_model_location(self):
        """A test for checking that the supported modalities match the model location."""
        base_test_case = {
            "dimensions": 764,
            "type": "languagebind",
        }

        language_bind_model_location = LanguagebindModelLocation(
            audio=ModalityLocation(url = "http://example.com"),
        )
        supported_modalities = [Modality.TEXT, Modality.IMAGE]

        with self.assertRaises(ValueError) as context:
            LanguagebindModelProperties(
                modelLocation=language_bind_model_location,
                supportedModalities=supported_modalities,
                **base_test_case
            )
        self.assertIn("Mismatch between supported modalities and model location.",
                      str(context.exception))
A test for checking that the supported modalities match the model location.
tests/unit_tests/marqo/inference/native_inference/test_languagebind_model_properties.py