code: def test_non_integer_nodes():
      G = nx.DiGraph([("A", "B"), ("B", "C"), ("C", "A")])
      num_walks = nx.number_of_walks(G, 2)
      expected = {
          "A": {"A": 0, "B": 0, "C": 1},
          "B": {"A": 1, "B": 0, "C": 0},
          "C": {"A": 0, "B": 1, "C": 0},
      }
      assert num_walks == expected
  
file_path: networkx/networkx/algorithms/tests/test_walks.py
imports: import pytest
  import networkx
label_desc: Use image node_id 3 for calling a global function with example usage: test_non_integer_nodes() without return types