code: def teardown_request(self, func: Callable, name: AppOrBlueprintKey=None) -> Callable:
          
          handler = ensure_coroutine(func)
          self.teardown_request_funcs[name].append(handler)
          return func
docs: Add a teardown request function.
  
          This is designed to be used as a decorator. An example usage,
  
          .. code-block:: python
  
              @app.teardown_request
              def func():
                  ...
  
          Arguments:
              func: The teardown request function itself.
              name: Optional blueprint key name.