def test_both_text_and_language_are_accepted_as_supported_modalities(self):
        """Test that both 'text' and 'language' are accepted as supported modalities and are mapped to 'language'."""
        base_model_properties = {
            "dimensions": 764,
            "type": "languagebind",
            "modelLocation": {"image": {"url": "http://example.com"}}
        }
        test_cases = [
            ({"supportedModalities": ["text", "image"], **base_model_properties}, "Text modality is accepted"),
            ({"supportedModalities": ["language", "image"], **base_model_properties}, "Language modality is accepted"),
        ]

        for model_properties, msg in test_cases:
            with self.subTest(msg=msg):
                self.assertEqual(
                    set(LanguagebindModelProperties(**model_properties).supportedModalities),
                    {Modality.TEXT, Modality.IMAGE}
                )
Test that both 'text' and 'language' are accepted as supported modalities and are mapped to 'language'.
tests/unit_tests/marqo/inference/native_inference/test_languagebind_model_properties.py