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