docstr: Adding a file by path creates a MemoryFile instance.
docstr_tok: ["Adding","a","file","by","path","creates","a","MemoryFile","instance","."]
code: def test_load_with_path(self):
      """Adding a file by path creates a MemoryFile instance."""
      file_id = self.storage.load_and_get_id(
          "mock/file/path",
          mimetype="video/mp4",
          kind=MediaFileKind.MEDIA,
          filename="file.mp4",
      )
      self.assertEqual(
          MemoryFile(
              content=b"mock_bytes",
              mimetype="video/mp4",
              kind=MediaFileKind.MEDIA,
              filename="file.mp4",
          ),
          self.storage.get_file(file_id),
      )
  
imports: import unittest
  from unittest import mock
  from unittest.mock import MagicMock, mock_open
  from parameterized import parameterized
  from streamlit.runtime.media_file_storage import MediaFileKind, MediaFileStorageError
  from streamlit.runtime.memory_media_file_storage import MemoryFile, MemoryMediaFileStorage, get_extension_for_mimetype
label_desc: Use image node_id 2 for calling the MemoryMediaFileStorageTest obj's underlying member method code with example usage: obj.test_load_with_path() without return types