code: def get_field_resolver(
          self, field_resolver: GraphQLFieldResolver
      ) -> GraphQLFieldResolver:
          
          if self._middleware_resolvers is None:
              return field_resolver
          if field_resolver not in self._cached_resolvers:
              self._cached_resolvers[field_resolver] = reduce(
                  lambda chained_fns, next_fn: partial(next_fn, chained_fns),
                  self._middleware_resolvers,
                  field_resolver,
              )
          return self._cached_resolvers[field_resolver]
docs: Wrap the provided resolver with the middleware.
  
          Returns a function that chains the middleware functions with the provided
          resolver function.