code: def test_power_method_should_return_finite():
      """See https://github.com/miso-belica/sumy/issues/187"""
      matrix = numpy.array(
          [
              [0.1, 0.2, 0.3, 0.6, 0.9],
              [0.45, 0, 0.3, 0.6, 0],
              [0.5, 0.6, 0.3, 1, 0.9],
              [0.7, 0, 0, 0.6, 0],
              [0.5, 0.123, 0, 0.111, 0.9],
          ]
      )
      scores = LexRankSummarizer.power_method(
          matrix, LexRankSummarizer.epsilon
      )
  
      assert all(numpy.isfinite(scores))
  
imports: from __future__ import absolute_import
  from __future__ import division, print_function, unicode_literals
  import math
  import numpy
  import pytest
  import sumy.summarizers.lex_rank
  from sumy.nlp.stemmers.czech import stem_word
  from sumy.nlp.tokenizers import Tokenizer
  from sumy.parsers.plaintext import PlaintextParser
  from sumy.summarizers.lex_rank import LexRankSummarizer
  from sumy.utils import get_stop_words
  from ..utils import build_document, load_resource
label_desc: Use image node_id 9 for calling a global function with example usage: test_power_method_should_return_finite() without return types