code: def get_cu_graph_and_params(dataset, directed):
      """
      Helper for fixtures returning a cuGraph obj and params.
      """
      # create graph
      G = dataset.get_graph(
          create_using=cugraph.Graph(directed=directed)
      )
      dataset_path = dataset.get_path()
      dataset_name = dataset.metadata["name"]
      return (G, dataset_path, dataset_name, directed)
  
imports: import gc
  import pytest
  import cupy
  import numpy
  from scipy.sparse import coo_matrix
  from scipy.sparse import csr_matrix
  from scipy.sparse import csc_matrix
  import cudf
  import cugraph
  from cupyx.scipy.sparse import coo_matrix
  from cupyx.scipy.sparse import csr_matrix
  from cupyx.scipy.sparse import csc_matrix
  from pylibcugraph.testing.utils import gen_fixture_params_product
  from cugraph.testing import utils, get_resultset, load_resultset, DEFAULT_DATASETS, SMALL_DATASETS
label_desc: Use image node_id 6 for calling a global function with example usage: get_cu_graph_and_params(dataset, directed) and returns: G,  dataset_path,  dataset_name,  directed