docstr: add_edges_from expects 4-tuples of the format (u, v, key, data_dict).
  
  Ensure 4-tuples of form (u, v, data_dict, key) raise exception.
docstr_tok: ["add_edges_from","expects","4-tuples","of","the","format","(","u",",","v",",","key",",","data_dict",")",".","Ensure","4-tuples","of","form","(","u",",","v",",","data_dict",",","key",")","raise","exception","."]
code: def test_multigraph_add_edges_from_four_tuple_misordered(self):
      """add_edges_from expects 4-tuples of the format (u, v, key, data_dict).
  
      Ensure 4-tuples of form (u, v, data_dict, key) raise exception.
      """
      G = nx.MultiGraph()
      with pytest.raises(TypeError):
          # key/data values flipped in 4-tuple
          G.add_edges_from([(0, 1, {"color": "red"}, 0)])
  
imports: from collections import UserDict
  import pytest
  import networkx
  from networkx.utils import edges_equal
  from .test_graph import BaseAttrGraphTester
  from .test_graph import TestGraph
label_desc: Use image node_id 12 for calling the TestMultiGraph obj's underlying member method code with example usage: obj.test_multigraph_add_edges_from_four_tuple_misordered() without return types