class_docstr: Unit tests for the
  :func:`~networkx.algorithms.matching.max_weight_matching` function.
docstr: Again but slightly different:
docstr_tok: ["Again","but","slightly","different",":"]
code: def test_nasty_blossom2(self):
      """Again but slightly different:"""
      G = nx.Graph()
      G.add_weighted_edges_from(
          [
              (1, 2, 45),
              (1, 5, 45),
              (2, 3, 50),
              (3, 4, 45),
              (4, 5, 50),
              (1, 6, 30),
              (3, 9, 35),
              (4, 8, 26),
              (5, 7, 40),
              (9, 10, 5),
          ]
      )
      ans = {
          1: 6,
          2: 3,
          3: 2,
          4: 8,
          5: 7,
          6: 1,
          7: 5,
          8: 4,
          9: 10,
          10: 9,
      }
      answer = matching_dict_to_set(ans)
      assert edges_equal(nx.max_weight_matching(G), answer)
      assert edges_equal(nx.min_weight_matching(G), answer)
  
imports: import math
  from itertools import permutations
  from pytest import raises
  import networkx
  from networkx.algorithms.matching import matching_dict_to_set
  from networkx.utils import edges_equal
label_desc: Use image node_id 18 for calling the TestMaxWeightMatching obj's underlying member method code with example usage: obj.test_nasty_blossom2() without return types