def test_marqo_base_documents_response_dictTypeErrorWhenExcludeIsNotSet(self):
        """A test to verify that a TypeError is raised when exclude is not a set."""
        response = MarqoBaseDocumentsResponse()
        with self.assertRaises(TypeError):
            response.dict(
                exclude=['_batch_response_stats']
            )  # This should raise a TypeError because exclude must be a set
A test to verify that a TypeError is raised when exclude is not a set.
tests/integ_tests/core/document/test_documents_common.py