def is_undefined(obj):
    from jinja2.runtime import Undefined
    return isinstance(obj, Undefined)
Check if the object passed is undefined.  This does nothing more than
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/utils.py/is_undefined