code: def graph_obj(request):
      """
      Returns a NX Graph or DiGraph obj from the dataset instance parameter.
      """
      dataset = request.param
      return nx_graph_from_dataset(dataset)
  
imports: import random
  import networkx
  import pandas
  import pytest
  from cugraph import datasets
  import nx_cugraph
label_desc: Use image node_id 2 for calling a global function with example usage: graph_obj(request) and returns: nx_graph_from_dataset