def _validate_supported_modalities_text_must_be_supported(cls, v):
        """
        Validate that the supported modalities include 'text' or 'language'.
        'language' is deprecated in the API usage and should be replaced with 'text'.

        Raises:
            ValueError: If 'text' or 'language' is not in the supported modalities.
            ValueError: If both 'text' and 'language' are in the supported modalities.

        Returns:
            Return the supported modalities if either 'text' or 'language' is in the supported modalities.
        """
        if not isinstance(v, list):
            raise ValueError("Invalid data type, must be a list")
        if Modality.TEXT not in v and "text" not in v:
            raise ValueError("You model must include 'text' as a supported modality")
        if Modality.TEXT in v and "text" in v:
            raise ValueError("You cannot have both 'text' and 'language' as supported modalities. 'language' is "
                             "deprecated. Please use 'text' instead")
        # Replace 'text' with 'language' as we still use 'language' internally
        v = list(set([Modality.TEXT if x == "text" else x for x in v]))
        return v

        Validate that the supported modalities include 'text' or 'language'.
        'language' is deprecated in the API usage and should be replaced with 'text'.

        Raises:
            ValueError: If 'text' or 'language' is not in the supported modalities.
            ValueError: If both 'text' and 'language' are in the supported modalities.

        Returns:
            Return the supported modalities if either 'text' or 'language' is in the supported modalities.
        
src/marqo/inference/native_inference/embedding_models/languagebind_model_properties.py