code: def test_Graph_from_MultiGraph(graph_file):
      # FIXME: Migrate to new test fixtures for Graph setup once available
      GM = graph_file.get_graph(create_using=cugraph.MultiGraph())
      dataset_path = graph_file.get_path()
      nxM = utils.read_csv_for_nx(dataset_path, read_weights_in_sp=True)
      GnxM = nx.from_pandas_edgelist(
          nxM,
          source="0",
          target="1",
          edge_attr="weight",
          create_using=nx.MultiGraph(),
      )
  
      G = cugraph.Graph(GM)
      Gnx = nx.Graph(GnxM)
      assert Gnx.number_of_edges() == G.number_of_edges()
      GdM = graph_file.get_graph(
          create_using=cugraph.MultiGraph(directed=True)
      )
      GnxdM = nx.from_pandas_edgelist(
          nxM,
          source="0",
          target="1",
          edge_attr="weight",
          create_using=nx.MultiGraph(),
      )
      Gd = cugraph.Graph(GdM, directed=True)
      Gnxd = nx.DiGraph(GnxdM)
      assert Gnxd.number_of_edges() == Gd.number_of_edges()
  
file_path: cugraph/python/cugraph/cugraph/tests/structure/test_multigraph.py
imports: import gc
  import pytest
  import numpy
  import networkx
  import cugraph
  from cugraph.testing import utils, DEFAULT_DATASETS
label_desc: Use image node_id 3 for calling a global function with example usage: test_Graph_from_MultiGraph(graph_file) without return types