code: def to_simple_graph(g):
      """Convert the graph to a simple graph with no multi-edge.
  
      DEPRECATED: renamed to dgl.to_simple
  
      Parameters
      ----------
      g : DGLGraph
          The input graph.
  
      Returns
      -------
      DGLGraph
          A simple graph.
  
      Notes
      -----
  
      This function discards the batch information. Please use
      :func:`dgl.DGLGraph.set_batch_num_nodes`
      and :func:`dgl.DGLGraph.set_batch_num_edges` on the transformed graph
      to maintain the information.
      """
      dgl_warning(
          "dgl.to_simple_graph is renamed to dgl.to_simple in v0.5."
      )
      return to_simple(g)
  
imports: import copy
  from collections.abc import Iterable, Mapping
  import numpy
  import scipy.sparse
  import scipy.sparse.linalg
  from ..utils import version
  from ..None import backend, batch, convert, function, ndarray, subgraph, utils
  from .._ffi.function import _init_api
  from ..base import dgl_warning, DGLError, EID, NID
  from ..frame import Frame
  from ..heterograph import DGLGraph
  from ..heterograph_index import create_heterograph_from_relations, create_metagraph_index
  from ..partition import metis_partition, metis_partition_assignment, partition_graph_with_halo
  from ..sampling.neighbor import sample_neighbors
label_desc: Use image node_id 14 for calling a global function with example usage: to_simple_graph(g) and returns: to_simple