def test_invalid_ids(self):
        """Non-hashable ids are still retained"""
        input_documents = [
            {'_id': ['invalid'], 'content': 'doc1'},
            {'_id': '2', 'content': 'doc2'}
        ]
        expected_output = (input_documents, {'2'})
        self.assertEqual(self.remove_duplicated_documents(input_documents), expected_output)
Non-hashable ids are still retained
tests/integ_tests/core/document/tests_remove_duplicate_documents.py