code: def test_run_with_weight_equal_to_1(self):
      ranker = MetaFieldRanker(meta_field="rating", weight=1.0)
      docs_before = [
          Document(content="abc", meta={"rating": value})
          for value in [1.1, 0.5, 2.3]
      ]
      output = ranker.run(documents=docs_before)
      docs_after = output["documents"]
  
      assert len(docs_after) == 3
      sorted_scores = sorted(
          [doc.meta["rating"] for doc in docs_after], reverse=True
      )
      assert [doc.meta["rating"] for doc in docs_after] == sorted_scores
  
imports: import pytest
  import logging
  from haystack import Document
  from haystack.components.rankers.meta_field import MetaFieldRanker
label_desc: Use image node_id 5 for calling the TestMetaFieldRanker obj's underlying member method code with example usage: obj.test_run_with_weight_equal_to_1() without return types