code: def test_pagerank(self):
      if "pagerank" in get_unity().list_toolkit_functions():
          m = tc.pagerank.create(self.graph)
          print(m)
          m.summary()
          self.assertEqual(
              (m.pagerank.num_rows(), m.pagerank.num_columns()),
              (self.graph.summary()["num_vertices"], 3),
          )
          self.assertEqual(int(m.pagerank["pagerank"].sum()), 2727)
          self.__test_model_save_load_helper__(m)
  
          m2 = tc.pagerank.create(self.graph, reset_probability=0.5)
          print(m2)
          self.assertEqual(
              (m2.pagerank.num_rows(), m2.pagerank.num_columns()),
              (self.graph.summary()["num_vertices"], 3),
          )
          self.assertAlmostEqual(
              m2.pagerank["pagerank"].sum(), 7087.08, delta=1e-2
          )
          with self.assertRaises(Exception):
              assert_frame_equal(
                  m.pagerank.topk("pagerank"),
                  m2.pagerank.topk("pagerank"),
              )
  
          pr_out = m2["pagerank"]
          with self.assertRaises(Exception):
              assert_frame_equal(
                  m.pagerank.topk("pagerank"), pr_out.topk("pagerank")
              )
  
          self.__test_model_save_load_helper__(m2)
  
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from .None import util
  import unittest
  import pandas
  from pandas.util.testing import assert_frame_equal
  import turicreate
  from turicreate._connect.main import get_unity
  from turicreate.toolkits._main import ToolkitError
  from turicreate.data_structures.sgraph import SGraph
  from turicreate.data_structures.sframe import SFrame
  import sys
label_desc: Use image node_id 5 for calling the GraphAnalyticsTest obj's underlying member method code with example usage: obj.test_pagerank() without return types