code: def test_nodes_all_labeled(self):
      G = nx.karate_club_graph()
      label_name = "club"
      predicted = node_classification.harmonic_function(
          G, label_name=label_name
      )
      for i in range(len(G)):
          assert predicted[i] == G.nodes[i][label_name]
  
file_path: networkx/networkx/algorithms/tests/test_node_classification.py
imports: import pytest
  import networkx
  from networkx.algorithms import node_classification
label_desc: Use image node_id 7 for calling the TestHarmonicFunction obj's underlying member method code with example usage: obj.test_nodes_all_labeled() without return types