code: def test_hidden_weight_attr():
      G = nx.cycle_graph(3)
      G.add_edge(1, 2, weight=5)
      num_walks = nx.number_of_walks(G, 3)
      expected = {
          0: {0: 2, 1: 3, 2: 3},
          1: {0: 3, 1: 2, 2: 3},
          2: {0: 3, 1: 3, 2: 2},
      }
      assert num_walks == expected
  
file_path: networkx/networkx/algorithms/tests/test_walks.py
imports: import pytest
  import networkx
label_desc: Use image node_id 6 for calling a global function with example usage: test_hidden_weight_attr() without return types