code: def __init__(self, app):
      self.app = app
  
imports: import importlib
  import logging
  import os
  import sys
  import pytest
  import requests
  import starlette
  from starlette.middleware import Middleware
  import ray
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray.exceptions import RayActorError
  from ray.serve._private.common import ProxyStatus
  from ray.serve._private.utils import call_function_from_import_path
  from ray.serve.context import _get_global_client
  from ray.serve.schema import LoggingConfig, ServeInstanceDetails
label_desc: Use image node_id 1 to create a new ASGIMiddleware object  with example: obj = ASGIMiddleware(app)