code: def test_sort_by_score_without_scores(self, caplog):
      joiner = DocumentJoiner()
      with caplog.at_level(logging.INFO):
          documents = [
              Document(content="a"),
              Document(content="b", score=0.5),
          ]
          output = joiner.run([documents])
          assert (
              "those with score=None were sorted as if they had a score of -infinity"
              in caplog.text
          )
          assert output["documents"] == documents[::-1]
  
file_path: haystack/test/components/joiners/test_document_joiner.py
imports: import logging
  import pytest
  from haystack import Document
  from haystack.components.joiners.document_joiner import DocumentJoiner
label_desc: Use image node_id 11 for calling the TestDocumentJoiner obj's underlying member method code with example usage: obj.test_sort_by_score_without_scores(caplog) without return types