code: def test_non_text_document(self):
      with pytest.raises(
          ValueError,
          match="DocumentSplitter only works with text documents but document.content for document ID",
      ):
          splitter = DocumentSplitter()
          splitter.run(documents=[Document()])
  
file_path: haystack/test/components/preprocessors/test_document_splitter.py
imports: import pytest
  from haystack import Document
  from haystack.components.preprocessors import DocumentSplitter
label_desc: Use image node_id 1 for calling the TestDocumentSplitter obj's underlying member method code with example usage: obj.test_non_text_document() without return types