code: def get_wsgi_app() -> Optional[dev_server.LitServerType]:
      """Returns a LitApp instance for consumption by gunicorn."""
      FLAGS.set_default("server_type", "external")
      FLAGS.set_default("demo_mode", True)
      FLAGS.set_default("data_dir", "./t5_data/")
      FLAGS.set_default("initialize_index", False)
      FLAGS.set_default(
          "hosted_datasets",
          [
              _CNNDM_TRAIN_HOSTED,
              _CNNDM_VALIDATION_HOSTED,
              _WMT14_DE_EN_HOSTED,
              _WMT14_FR_EN_HOSTED,
          ],
      )
      # Parse flags without calling app.run(main), to avoid conflict with
      # gunicorn command line flags.
      unused = flags.FLAGS(sys.argv, known_only=True)
      if unused:
          logging.info(
              "t5_demo:get_wsgi_app() called with unused args: %s",
              unused,
          )
      return main([])
  
imports: from collections.abc import Sequence
  import sys
  from typing import Optional
  from absl import app
  from absl import flags
  from absl import logging
  from lit_nlp import app
  from lit_nlp import dev_server
  from lit_nlp import server_flags
  from lit_nlp.api import dataset
  from lit_nlp.components import index
  from lit_nlp.components import similarity_searcher
  from lit_nlp.components import word_replacer
  from lit_nlp.examples.datasets import mt
  from lit_nlp.examples.datasets import summarization
  from lit_nlp.examples.models import t5
  from lit_nlp.lib import caching
label_desc: Use image node_id 1 for calling a global function with example usage: get_wsgi_app() and returns: main