code: def testPageRank(self):
      for idx, g in enumerate(self.__class__.graphs):
          try:
              pr = g.pagerank()
          except Exception as ex:
              self.assertTrue(
                  False,
                  msg="PageRank calculation threw exception for graph #%d: %s"
                  % (idx, ex),
              )
              raise
  
          if g.vcount() == 0:
              self.assertEqual([], pr)
              continue
  
          self.assertAlmostEqual(
              1.0,
              sum(pr),
              places=5,
              msg="PageRank sum is not 1.0 for graph #%d (%r)"
              % (idx, pr),
          )
          self.assertTrue(
              min(pr) >= 0,
              msg="Minimum PageRank is less than 0 for graph #%d (%r)"
              % (idx, pr),
          )
  
file_path: python-igraph/tests/test_atlas.py
imports: import warnings
  import unittest
  from igraph import Graph
label_desc: Use image node_id 1 for calling the AtlasTestBase obj's underlying member method code with example usage: obj.testPageRank() without return types