def get_attributes(var):
    is_valid = partial(is_valid_in_template, var)
    return filter(is_valid, dir(var))
Given a varaible, return the list of attributes that are available inside
dataset/ETHPy150Open calebsmith/django-template-debug/template_debug/utils.py/get_attributes