code: def test_multigraph(graph_class):
      G = graph_class()
      G.add_edge(0, 1, "key1", x=10)
      G.add_edge(0, 1, "key2", y=20)
      Gcg = nxcg.from_networkx(G, preserve_edge_attrs=True)
      H = nxcg.to_networkx(Gcg)
      assert type(G) is type(H)
      assert nx.utils.graphs_equal(G, H)
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/tests/test_convert.py
imports: import cupy
  import networkx
  import pytest
  import nx_cugraph
  from nx_cugraph import interface
label_desc: Use image node_id 3 for calling a global function with example usage: test_multigraph(graph_class) without return types