code: def get_subgraph_and_src_range_from_edgelist(
      edge_list, is_mg, reverse_edges=False
  ):
      if reverse_edges:
          edge_list = edge_list.rename(
              columns={src_n: dst_n, dst_n: src_n}
          )
  
      subgraph = cugraph.MultiGraph(directed=True)
      if is_mg:
          # FIXME: Can not switch to renumber = False
          # For MNMG Algos
          # Remove when https://github.com/rapidsai/cugraph/issues/2437
          # lands
          create_subgraph_f = subgraph.from_dask_cudf_edgelist
          renumber = True
          src_range = (
              edge_list[src_n].min().compute(),
              edge_list[src_n].max().compute(),
          )
      else:
          # Note: We have to keep renumber = False
          # to handle cases when the seed_nodes is not present in subgraph
          create_subgraph_f = subgraph.from_cudf_edgelist
          renumber = False
          src_range = edge_list[src_n].min(), edge_list[src_n].max()
  
      create_subgraph_f(
          edge_list,
          source=src_n,
          destination=dst_n,
          edge_attr=eid_n,
          renumber=renumber,
      )
      if hasattr(subgraph, "input_df"):
          subgraph.input_df = None
  
      del edge_list
  
      return subgraph, src_range
  
file_path: cugraph/python/cugraph/cugraph/gnn/dgl_extensions/utils/sampling.py
imports: import cugraph
  import cudf
  import cupy
  import dask_cudf
label_desc: Use image node_id 1 for calling a global function with example usage: get_subgraph_and_src_range_from_edgelist(edge_list, is_mg, reverse_edges) and returns: subgraph,  src_range