code: def test_biased_rank(long_doc: Doc):
      """
      Rank phrases close to 'focus' higher.
      """
      # given
      biased_rank = BiasedTextRankFactory()
      base_text_rank = BaseTextRankFactory()
  
      # when
      processed_doc = base_text_rank(long_doc)
      phrases = processed_doc._.phrases
  
      # the article is primarily about the match up between AlphaGo and
      # Grandmaster Lee Sedol
      assert "grandmaster Lee Sedol" in [p.text for p in phrases][:3]
      assert "Gary Kasparov" not in [p.text for p in phrases][:3]
  
      comparison_doc = biased_rank(long_doc)
      tr = comparison_doc._.textrank
      tr.change_focus("Chess", bias=10.0, default_bias=0.0)
  
      biased_phrases = comparison_doc._.phrases
  
      # then
      # shifting the focus to chess bring Gary Kasparov in top ranks
      assert "Gary Kasparov" in [p.text for p in biased_phrases][:3]
  
imports: from spacy.tokens import Doc
  import sys
  from pytextrank.base import BaseTextRankFactory
  from pytextrank.biasedrank import BiasedTextRankFactory
label_desc: Use image node_id 3 for calling a global function with example usage: test_biased_rank(long_doc) without return types