code: def test_basic_cases(self):
      def check_basic_case(
          graph_func, expected_weight, weight_accessor
      ):
          graph = graph_func()
          clique, weight = nx.algorithms.max_weight_clique(
              graph, weight_accessor
          )
          assert verify_clique(
              graph, clique, weight, expected_weight, weight_accessor
          )
  
      for graph_func, (
          expected_weight,
          expected_size,
      ) in TEST_CASES.items():
          check_basic_case(graph_func, expected_weight, "weight")
          check_basic_case(graph_func, expected_size, None)
  
file_path: networkx/networkx/algorithms/tests/test_max_weight_clique.py
imports: import pytest
  import networkx
label_desc: Use image node_id 1 for calling the TestMaximumWeightClique obj's underlying member method code with example usage: obj.test_basic_cases() without return types