code: def test_multidigraph2(self):
      G = nx.MultiDiGraph([(0, 1), (0, 1), (0, 1), (1, 2)])
      L = nx.line_graph(G)
      assert edges_equal(
          L.edges(),
          [
              ((0, 1, 0), (1, 2, 0)),
              ((0, 1, 1), (1, 2, 0)),
              ((0, 1, 2), (1, 2, 0)),
          ],
      )
  
imports: import pytest
  import networkx
  from networkx.generators import line
  from networkx.utils import edges_equal
label_desc: Use image node_id 8 for calling the TestGeneratorLine obj's underlying member method code with example usage: obj.test_multidigraph2() without return types