human
Solve the following python programming problem given the following code:
@connect_on_app_finalize
def add_chain_task(app):
assistant
#Here is the Python code you requested.

    """No longer used, but here for backwards compatibility.
    """
    @app.task(name=u'celery.chain', shared=False, lazy=False)
    def chain(*args, **kwargs):
        raise NotImplementedError(u'chain    is    not    a    real    task')
    return chain