class_docstr: Tests the /upload_file endpoint.
class_docstr_tok: ["Tests","the","\/upload_file","endpoint","."]
docstr: Missing session_id in the path should fail with 404 status.
docstr_tok: ["Missing","session_id","in","the","path","should","fail","with","404","status","."]
code: def test_upload_missing_session_id_error(self):
      """Missing session_id in the path should fail with 404 status."""
      file_body = {
          "image.png": ("image.png", b"1234"),
      }
  
      response = self._upload_files(
          file_body, session_id="", file_id="file_id"
      )
      self.assertEqual(404, response.code)
      self.assertIn("Not Found", response.reason)
  
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 5 for calling the UploadFileRequestHandlerTest obj's underlying member method code with example usage: obj.test_upload_missing_session_id_error() without return types