def __init__(self, app=None):
        self.original_register_app = _state._register_app  # Backup Celery app registration function.
        _state._register_app = lambda _: None  # Upon Celery app registration attempt, do nothing.
        super(Celery, self).__init__()
        if app is not None:
            self.init_app(app)
If app argument provided then initialize celery using application config values.
dataset/ETHPy150Open Robpol86/Flask-Celery-Helper/flask_celery.py/Celery.__init__