docstr: Two files with the same content, mimetype, and filename should share an ID.
docstr_tok: ["Two","files","with","the","same","content",",","mimetype",",","and","filename","should","share","an","ID","."]
code: def test_identical_files_have_same_id(self):
      """Two files with the same content, mimetype, and filename should share an ID."""
      # Create 2 identical files. We'll just get one ID.
      file_id1 = self.storage.load_and_get_id(
          b"mock_bytes",
          mimetype="video/mp4",
          kind=MediaFileKind.MEDIA,
          filename="file.mp4",
      )
      file_id2 = self.storage.load_and_get_id(
          b"mock_bytes",
          mimetype="video/mp4",
          kind=MediaFileKind.MEDIA,
          filename="file.mp4",
      )
      self.assertEqual(file_id1, file_id2)
  
      # Change file content -> different ID
      changed_content = self.storage.load_and_get_id(
          b"mock_bytes_2",
          mimetype="video/mp4",
          kind=MediaFileKind.MEDIA,
          filename="file.mp4",
      )
      self.assertNotEqual(file_id1, changed_content)
  
      # Change mimetype -> different ID
      changed_mimetype = self.storage.load_and_get_id(
          b"mock_bytes",
          mimetype="image/png",
          kind=MediaFileKind.MEDIA,
          filename="file.mp4",
      )
      self.assertNotEqual(file_id1, changed_mimetype)
  
      # Change (or omit) filename -> different ID
      changed_filename = self.storage.load_and_get_id(
          b"mock_bytes", mimetype="video/mp4", kind=MediaFileKind.MEDIA
      )
      self.assertNotEqual(file_id1, changed_filename)
  
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 4 for calling the MemoryMediaFileStorageTest obj's underlying member method code with example usage: obj.test_identical_files_have_same_id() without return types