human
Write me a the Python program you requested given the following:
Complete the below
def dbcheck(exprstr, globals=None, locals=None):

    ''''Decorator to implement debugging assertions'
    '''
assistant
#Here is the Python program you requested.
    def decorate(func):
        expr = compile(exprstr, ('dbcheck-%s' % func.__name__), 'eval')
        def check(*args, **kwds):
            if (not eval(expr, globals, locals)):
                raise DbcheckError(exprstr, func, args, kwds)
            return func(*args, **kwds)
        return check
    return decorate