code: def create_property_graph_from_builtin_dataset(
      dataset_name, mg=False, server=None
  ):
      dataset_obj = getattr(datasets, dataset_name)
      edgelist_df = dataset_obj.get_edgelist(fetch=True)
  
      if mg and (server is not None) and server.is_multi_gpu:
          G = MGPropertyGraph()
          edgelist_df = dask_cudf.from_cudf(edgelist_df)
      else:
          G = PropertyGraph()
  
      G.add_edge_data(edgelist_df, vertex_col_names=["src", "dst"])
      return G
  
file_path: cugraph/python/cugraph-service/server/cugraph_service_server/testing/benchmark_server_extension.py
imports: import numpy
  import dask_cudf
  import cugraph
  from cugraph.experimental import PropertyGraph, MGPropertyGraph
  from cugraph import datasets
  from cugraph.generators import rmat
label_desc: Use image node_id 2 for calling a global function with example usage: create_property_graph_from_builtin_dataset(dataset_name, mg, server) and returns: G