class_docstr: Tests the /upload_file endpoint.
class_docstr_tok: ["Tests","the","\/upload_file","endpoint","."]
code: def get_app(self):
      self.file_mgr = MemoryUploadedFileManager(
          upload_endpoint=UPLOAD_FILE_ENDPOINT
      )
      return tornado.web.Application(
          [
              (
                  f"{UPLOAD_FILE_ENDPOINT}/(?P<session_id>[^/]+)/(?P<file_id>[^/]+)",
                  UploadFileRequestHandler,
                  dict(
                      file_mgr=self.file_mgr,
                      is_active_session=lambda session_id: True,
                  ),
              ),
          ]
      )
  
imports: from typing import NamedTuple
  import requests
  import tornado.testing
  import tornado.web
  import tornado.websocket
  from streamlit.logger import get_logger
  from streamlit.runtime.memory_uploaded_file_manager import MemoryUploadedFileManager
  from streamlit.runtime.uploaded_file_manager import UploadedFileManager
  from streamlit.web.server.server import UPLOAD_FILE_ENDPOINT
  from streamlit.web.server.upload_file_request_handler import UploadFileRequestHandler
label_desc: Use image node_id 1 for calling the UploadFileRequestHandlerTest obj's underlying member method code with example usage: obj.get_app() and returns: tornado