code: def three_node_independent_set():
      graph = nx.Graph()
      graph.add_nodes_from([1, 2, 3])
      graph.nodes[1]["weight"] = 10
      graph.nodes[2]["weight"] = 20
      graph.nodes[3]["weight"] = 5
      return graph
  
file_path: networkx/networkx/algorithms/tests/test_max_weight_clique.py
imports: import pytest
  import networkx
label_desc: Use image node_id 6 for calling a global function with example usage: three_node_independent_set() and returns: graph