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