code: def test_linear_score_raises_raises_warning_if_doc_without_score(
      self, caplog
  ):
      ranker = MetaFieldRanker(
          meta_field="rating", ranking_mode="linear_score", weight=0.5
      )
      docs_before = [
          Document(content="abc", meta={"rating": 1.3}),
          Document(content="abc", meta={"rating": 0.7}),
          Document(content="abc", meta={"rating": 2.1}),
      ]
  
      with caplog.at_level(logging.WARNING):
          ranker.run(documents=docs_before)
          assert (
              "The score wasn't provided; defaulting to 0."
              in caplog.text
          )
  
imports: import pytest
  import logging
  from haystack import Document
  from haystack.components.rankers.meta_field import MetaFieldRanker
label_desc: Use image node_id 18 for calling the TestMetaFieldRanker obj's underlying member method code with example usage: obj.test_linear_score_raises_raises_warning_if_doc_without_score(caplog) without return types