code: def create_app() -> Flask:
      app = Flask(__name__)
      app.config.from_mapping(
          CELERY=dict(
              broker_url="redis://localhost",
              result_backend="redis://localhost",
              task_ignore_result=True,
          ),
      )
      app.config.from_prefixed_env()
      celery_init_app(app)
  
      @app.route("/")
      def index() -> str:
          return render_template("index.html")
  
      from . import views
  
      app.register_blueprint(views.bp)
      return app
  
imports: from celery import Celery
  from celery import Task
  from flask import Flask
  from flask import render_template
label_desc: Use image node_id 1 for calling a global function with example usage: create_app() and returns: app, render_template