class_docstr: Unit tests for the
  :func:`~networkx.algorithms.matching.max_weight_matching` function.
docstr: Create S-blossom, relabel as T, expand:
docstr_tok: ["Create","S-blossom",",","relabel","as","T",",","expand",":"]
code: def test_s_blossom_relabel_expand(self):
      """Create S-blossom, relabel as T, expand:"""
      G = nx.Graph()
      G.add_weighted_edges_from(
          [
              (1, 2, 23),
              (1, 5, 22),
              (1, 6, 15),
              (2, 3, 25),
              (3, 4, 22),
              (4, 5, 25),
              (4, 8, 14),
              (5, 7, 13),
          ]
      )
      answer = matching_dict_to_set(
          {1: 6, 2: 3, 3: 2, 4: 8, 5: 7, 6: 1, 7: 5, 8: 4}
      )
      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 15 for calling the TestMaxWeightMatching obj's underlying member method code with example usage: obj.test_s_blossom_relabel_expand() without return types