docstr: We should filter out DeletedFile objects for final user value.
docstr_tok: ["We","should","filter","out","DeletedFile","objects","for","final","user","value","."]
code: def test_deleted_files_filtered_out(self, get_upload_files_patch):
      """We should filter out DeletedFile objects for final user value."""
  
      rec1 = UploadedFileRec("file1", "file1", "type", b"1234")
      rec2 = UploadedFileRec("file2", "file2", "type", b"5678")
  
      uploaded_files = [
          DeletedFile(file_id="a"),
          UploadedFile(
              rec1,
              FileURLsProto(
                  file_id="file1", delete_url="d1", upload_url="u1"
              ),
          ),
          DeletedFile(file_id="b"),
          UploadedFile(
              rec2,
              FileURLsProto(
                  file_id="file2", delete_url="d1", upload_url="u1"
              ),
          ),
          DeletedFile(file_id="c"),
      ]
  
      get_upload_files_patch.return_value = uploaded_files
  
      result_1: UploadedFile = st.file_uploader(
          "a", accept_multiple_files=False
      )
      result_2: UploadedFile = st.file_uploader(
          "b", accept_multiple_files=True
      )
  
      self.assertEqual(result_1, None)
      self.assertEqual(result_2, [uploaded_files[1], uploaded_files[3]])
  
imports: from unittest.mock import patch
  from parameterized import parameterized
  import streamlit
  from streamlit import config
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Common_pb2 import FileURLs
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.runtime.uploaded_file_manager import DeletedFile, UploadedFile, UploadedFileRec
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 10 for calling the FileUploaderTest obj's underlying member method code with example usage: obj.test_deleted_files_filtered_out(get_upload_files_patch) without return types