docstr: Adding a file that already exists, but with different coordinates,
  results in just a single file in the manager.
docstr_tok: ["Adding","a","file","that","already","exists",",","but","with","different","coordinates",",","results","in","just","a","single","file","in","the","manager","."]
code: def test_add_file_already_exists_different_coord(self):
      """Adding a file that already exists, but with different coordinates,
      results in just a single file in the manager.
      """
      sample = IMAGE_FIXTURES["png"]
  
      coord = random_coordinates()
      self.media_file_manager.add(
          sample["content"], sample["mimetype"], coord
      )
      file_id = _calculate_file_id(
          sample["content"], sample["mimetype"]
      )
      self.assertTrue(file_id in self.media_file_manager._file_metadata)
  
      coord = random_coordinates()
      self.media_file_manager.add(
          sample["content"], sample["mimetype"], coord
      )
      self.assertTrue(file_id in self.media_file_manager._file_metadata)
  
      # There should only be 1 file in MFM.
      self.assertEqual(len(self.media_file_manager._file_metadata), 1)
  
      # There should only be 1 session with registered files.
      self.assertEqual(
          len(self.media_file_manager._files_by_session_and_coord), 1
      )
  
imports: import random
  import unittest
  from typing import Optional
  from unittest import TestCase, mock
  from unittest.mock import MagicMock, call, mock_open
  from streamlit.runtime.media_file_manager import MediaFileManager
  from streamlit.runtime.media_file_storage import MediaFileKind
  from streamlit.runtime.memory_media_file_storage import MemoryFile, MemoryMediaFileStorage, _calculate_file_id
  from tests.exception_capturing_thread import call_on_threads
label_desc: Use image node_id 9 for calling the MediaFileManagerTest obj's underlying member method code with example usage: obj.test_add_file_already_exists_different_coord() without return types