code: def __init__(self, *middlewares, **kwargs):
      self.middlewares = middlewares
      self.wrap_in_promise = kwargs.get("wrap_in_promise", True)
      self._middleware_resolvers = list(
          get_middleware_resolvers(middlewares)
      )
      self._cached_resolvers = {}
  
file_path: wandb/wandb/vendor/graphql-core-1.1/wandb_graphql/execution/middleware.py
imports: import inspect
  from functools import partial
  from itertools import chain
  from wandb_promise import Promise
label_desc: Use image node_id 1 to create a new MiddlewareManager object from inherited base classes: object with example: obj = MiddlewareManager()