func ValidateModelName(name string) error {
	modelName, _, err := SplitModelName(name)
	if err != nil {
		return errors.Annotatef(err, "validating model name %q", name)
	}
	if !names.IsValidModelName(modelName) {
		return errors.NotValidf("model name %q", name)
	}
	return nil
}
// ValidateModelName validates the given model name.
ValidateModelName validates the given model name.
// ValidateModelName validates the given model name .
func ValidateModelName(name string) error {
	modelName, _, err := SplitModelName(name)
	if err != nil {
		return errors.Annotatef(err, "validating model name %q", name)
	}
	if !names.IsValidModelName(modelName) {
		return errors.NotValidf("model name %q", name)
	}
	return nil
}
func ValidateModelName ( name string ) error { modelName , _ , err := SplitModelName ( name ) if err != nil { return errors . Annotatef ( err , " " , name ) } if ! names . IsValidModelName ( modelName ) { return errors . NotValidf ( " " , name ) } return nil }
ValidateModelName validates the given model name.
ValidateModelName validates the given model name .