def test_name_or_model_location_must_be_provided(self):
        """A test for checking that only one of name or modelLocation must be provided."""
        base_test_case = {
            "dimensions": 764,
            "type": "languagebind",
            "name": "test_model",
        }
        test_cases = [
            ({**base_test_case}, "One of name or modelLocation must be provided. Neither provided"),
            ({"modelLocation": "test_model", "name": "test", **base_test_case},
             "Only one of name or modelLocation must be provided. Both provided"),
        ]
        for test_case, msg in test_cases:
            with self.subTest(msg=msg):
                with self.assertRaises(ValidationError) as context:
                    LanguagebindModelProperties(**test_case)
                self.assertIn("supported_modalities", str(context.exception))
A test for checking that only one of name or modelLocation must be provided.
tests/unit_tests/marqo/inference/native_inference/test_languagebind_model_properties.py