human
Complete the below
def is_undefined(obj):

    ''''Check if the object passed is undefined.  This does nothing more than
    performing an instance check against :class:`Undefined` but looks nicer.
    This can be used for custom filters or tests that want to react to
    undefined variables.  For example a custom default filter can look like
    this::
    def default(var, default=\'\'):
    if is_undefined(var):
    return default
    return var'
    '''
 Can you provide a the Python program you requested?
assistant
#Here is the Python program you requested.
    from jinja2.runtime import Undefined
    return isinstance(obj, Undefined)