def _type_helper(o):
    if isinstance(o, Model):
        return "%s.%s" % o._meta.app_label, o._meta.object_name.lower()
    elif isinstance(o, (list, dict, set, QuerySet)):
        return "%s (%s item%s)" % (str(type(o)), len(o), pluralize(len(o)))
    else:
        return str(type(o))
dataset/ETHPy150Open jdunck/django-template-help/template_help/templatetags/context_helper_exhaustive.py/_type_helper/original