code: def test_init_with_custom_parameters(self):
      joiner = DocumentJoiner(
          join_mode="merge",
          weights=[0.4, 0.6],
          top_k=5,
          sort_by_score=False,
      )
      assert joiner.join_mode == "merge"
      assert joiner.weights == [0.4, 0.6]
      assert joiner.top_k == 5
      assert not joiner.sort_by_score
  
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 2 for calling the TestDocumentJoiner obj's underlying member method code with example usage: obj.test_init_with_custom_parameters() without return types