class_docstr: Tests for `PathPrefixMiddleware`.
class_docstr_tok: ["Tests","for","`","PathPrefixMiddleware","`","."]
code: def test_composition(self):
      app = self._echo_app
      app = path_prefix.PathPrefixMiddleware(app, "/bar")
      app = path_prefix.PathPrefixMiddleware(app, "/foo")
      server = werkzeug_test.Client(app, werkzeug.wrappers.Response)
  
      response = server.get("/foo/bar/baz/quux")
      self._assert_ok(response, path="/baz/quux", script="/foo/bar")
  
file_path: tensorboard/tensorboard/backend/path_prefix_test.py
imports: import json
  import werkzeug
  from werkzeug import test
  from tensorboard import errors
  from tensorboard import test
  from tensorboard.backend import path_prefix
label_desc: Use image node_id 7 for calling the PathPrefixMiddlewareTest obj's underlying member method code with example usage: obj.test_composition() without return types