def test_model_location_exactly_one_field(self):
        """Test that exactly one of url, s3, or hf must be provided in ModalityLocation."""
        test_cases = [
            ({}, "No field provided"),
            ({"url": "http://example.com", "s3": S3Location(Bucket="test", Key="test")}, "Multiple fields provided"),
        ]

        for test_case, msg in test_cases:
            with self.subTest(msg=msg):
                with self.assertRaises(ValueError) as context:
                    ModalityLocation(**test_case)
                self.assertIn("Exactly one of url, s3, hf must be provided", str(context.exception))
Test that exactly one of url, s3, or hf must be provided in ModalityLocation.
tests/unit_tests/marqo/inference/native_inference/test_languagebind_model_properties.py