def METHOD_NAME(
    self, input_model: topic_models.TopicModel
) -> Iterator[topic_validation_errors.ModelCanonicalNameMismatchError]:
    """Function that validate that canonical name of the model is same as
    name of the model in lowercase.
    Args:
        input_model: datastore_services.Model. TopicModel to validate.
    Yields:
        ModelCanonicalNameMismatchError. An error class for
        name mismatched models.
    """
    model = job_utils.clone_model(input_model)
    name = model.name
    if name.lower() != model.canonical_name:
        yield topic_validation_errors.ModelCanonicalNameMismatchError(model)