class_docstr: Unit tests for the
  :func:`~networkx.algorithms.matching.maximal_matching`.
code: def test_wrong_graph_type(self):
      error = nx.NetworkXNotImplemented
      raises(error, nx.maximal_matching, nx.MultiGraph())
      raises(error, nx.maximal_matching, nx.MultiDiGraph())
      raises(error, nx.maximal_matching, nx.DiGraph())
  
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 5 for calling the TestMaximalMatching obj's underlying member method code with example usage: obj.test_wrong_graph_type() without return types