code: def test_pagerank_result_type():
      G = nx.DiGraph()
      [G.add_node(k) for k in ["A", "B", "C", "D", "E", "F", "G"]]
      G.add_edges_from(
          [
              ("G", "A"),
              ("A", "G"),
              ("B", "A"),
              ("C", "A"),
              ("A", "C"),
              ("A", "D"),
              ("E", "A"),
              ("F", "A"),
              ("D", "B"),
              ("D", "F"),
          ]
      )
      ppr1 = nx.pagerank(G)
      # This just tests that the right type is returned.
      assert isinstance(ppr1, dict)
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_pagerank_result_type() without return types