def verbose_name(instance, field_name=None):
    """
    Returns verbose_name for a model instance or a field.
    """
    if field_name:
        return instance._meta.get_field(field_name).verbose_name
    return instance._meta.verbose_name