code: def test_google_matrix(self, wrapper):
      G = wrapper(self.G)
      M = nx.google_matrix(G, alpha=0.9, nodelist=sorted(G))
      _, ev = np.linalg.eig(M.T)
      p = ev[:, 0] / ev[:, 0].sum()
      for a, b in zip(p, self.G.pagerank.values()):
          assert a == pytest.approx(b, abs=1e-7)
  
imports: import random
  import pytest
  import networkx
  from networkx.classes.tests import dispatch_interface
  from networkx.algorithms.link_analysis.pagerank_alg import _pagerank_numpy, _pagerank_python, _pagerank_scipy
label_desc: Use image node_id 5 for calling the TestPageRank obj's underlying member method code with example usage: obj.test_google_matrix(wrapper) without return types