human
Complete this python program:
def commit(fn):
assistant
#Here is the Python code you requested.

    """Decorator to commit changes in datastore.
    """
    @wraps(fn)
    def wrapper(*args, **kwargs):
        fn(*args, **kwargs)
        _datastore.commit()
    return wrapper