code: def test_raises_value_error_if_wrong_top_k(self):
      with pytest.raises(ValueError):
          MetaFieldRanker(meta_field="rating", top_k=-1)
  
imports: import pytest
  import logging
  from haystack import Document
  from haystack.components.rankers.meta_field import MetaFieldRanker
label_desc: Use image node_id 12 for calling the TestMetaFieldRanker obj's underlying member method code with example usage: obj.test_raises_value_error_if_wrong_top_k() without return types