code: def test_remove_substrings(self):
      cleaner = DocumentCleaner(
          remove_substrings=["This", "A", "words", "🪲"]
      )
      result = cleaner.run(
          documents=[
              Document(content="This is a text with some words.🪲")
          ]
      )
      assert len(result["documents"]) == 1
      assert result["documents"][0].content == " is a text with some ."
  
file_path: haystack/test/components/preprocessors/test_document_cleaner.py
imports: import logging
  import pytest
  from haystack import Document
  from haystack.components.preprocessors import DocumentCleaner
label_desc: Use image node_id 7 for calling the TestDocumentCleaner obj's underlying member method code with example usage: obj.test_remove_substrings() without return types