def _validate_minimum_required_fields_to_load_model(cls, values):
        """Validate the minimum required fields to load the model.

        Either name or modelLocation must be provided to load the model.
        If name is provided, this is a Marqo registered model.
        If modelLocation is provided, this is a custom model.

        Raises:
            ValueError: If neither name nor modelLocation is provided.
            ValueError: If both name and modelLocation are provided.
        """
        name = values.get("name")
        model_location = values.get("modelLocation")
        if not name and not model_location:
            raise ValueError("Either name or modelLocation must be provided to load the model")
        elif name and model_location:
            raise ValueError("Only one of name or modelLocation must be provided to load the model")
        return values
Validate the minimum required fields to load the model.

        Either name or modelLocation must be provided to load the model.
        If name is provided, this is a Marqo registered model.
        If modelLocation is provided, this is a custom model.

        Raises:
            ValueError: If neither name nor modelLocation is provided.
            ValueError: If both name and modelLocation are provided.
        
src/marqo/inference/native_inference/embedding_models/languagebind_model_properties.py