@register.simple_tag<EOL>def gravatar_get_img(obj, size=<NUM_LIT>, default='<STR_LIT>'):
url = get_gravatar_url(obj, size=size, default=default)<EOL>if url:<EOL><INDENT>return safe('<STR_LIT>' % url)<EOL><DEDENT>return '<STR_LIT>'<EOL>
Returns Gravatar image HTML tag for a given string or UserModel.

    Example:

        {% load gravatar %}
        {% gravatar_get_img user_model %}

    :param UserModel, str obj:
    :param int size:
    :param str default:
    :return: