code: def test_remove_regex(self):
      cleaner = DocumentCleaner(remove_regex=r"\s\s+")
      result = cleaner.run(
          documents=[
              Document(content="This is a  text with   some words.")
          ]
      )
      assert len(result["documents"]) == 1
      assert (
          result["documents"][0].content
          == "This is a text with some words."
      )
  
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 8 for calling the TestDocumentCleaner obj's underlying member method code with example usage: obj.test_remove_regex() without return types