code: def build_cu_and_nx_graphs(graph_file, directed=True, edgevals=False):
      G = generate_cugraph_graph_from_file(
          graph_file, directed=directed, edgevals=edgevals
      )
      Gnx = generate_nx_graph_from_file(
          graph_file, directed=directed, edgevals=edgevals
      )
      return G, Gnx
  
imports: import os
  import pytest
  import pandas
  import networkx
  import numpy
  import cupy
  from cupyx.scipy.sparse import coo_matrix
  from cupyx.scipy.sparse import csr_matrix
  from cupyx.scipy.sparse import csc_matrix
  from scipy.sparse import coo_matrix
  from scipy.sparse import csr_matrix
  from scipy.sparse import csc_matrix
  from pathlib import Path
  import cudf
  import dask_cudf
  import cugraph
  from cugraph.dask.common.mg_utils import get_client
label_desc: Use image node_id 8 for calling a global function with example usage: build_cu_and_nx_graphs(graph_file, directed, edgevals) and returns: G,  Gnx