code: def test_unaffected_by_self_loops(self):
      graph = two_node_graph()
      graph.add_edge(1, 1)
      graph.add_edge(2, 2)
      clique, weight = nx.algorithms.max_weight_clique(graph, "weight")
      assert verify_clique(graph, clique, weight, 30, "weight")
      graph = three_node_independent_set()
      graph.add_edge(1, 1)
      clique, weight = nx.algorithms.max_weight_clique(graph, "weight")
      assert verify_clique(graph, clique, weight, 20, "weight")
  
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 the TestMaximumWeightClique obj's underlying member method code with example usage: obj.test_unaffected_by_self_loops() without return types