class_docstr: Unit tests for the
  :func:`~networkx.algorithms.matching.max_weight_matching` function.
docstr: Empty graph
docstr_tok: ["Empty","graph"]
code: def test_trivial1(self):
      """Empty graph"""
      G = nx.Graph()
      assert nx.max_weight_matching(G) == set()
      assert nx.min_weight_matching(G) == set()
  
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 1 for calling the TestMaxWeightMatching obj's underlying member method code with example usage: obj.test_trivial1() without return types