code: def setup_middleware(app):
      from starlette.middleware.gzip import GZipMiddleware
  
      app.middleware_stack = None  # reset current middleware to allow modifying user provided list
      app.add_middleware(GZipMiddleware, minimum_size=1000)
      configure_cors_middleware(app)
      app.build_middleware_stack()
  
file_path: stable-diffusion-webui/modules/initialize_util.py
imports: import json
  import os
  import signal
  import sys
  import re
  from modules.timer import startup_timer
label_desc: Use image node_id 10 for calling a global function with example usage: setup_middleware(app) without return types