docstr: Adding a file by path raises a MediaFileStorageError if the file can't be read.
docstr_tok: ["Adding","a","file","by","path","raises","a","MediaFileStorageError","if","the","file","ca","n't","be","read","."]
code: def test_load_with_bad_path(self):
      """Adding a file by path raises a MediaFileStorageError if the file can't be read."""
      with self.assertRaises(MediaFileStorageError):
          self.storage.load_and_get_id(
              "mock/file/path",
              mimetype="video/mp4",
              kind=MediaFileKind.MEDIA,
              filename="file.mp4",
          )
  
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 5 for calling the MemoryMediaFileStorageTest obj's underlying member method code with example usage: obj.test_load_with_bad_path() without return types