code: def _bench_helper_cugraph(
      gpubenchmark, N, attr_kind, create_using, method, do_renumber
  ):
      G = method(N, create_using=create_using)
      if attr_kind:
          for *_ids, edgedict in G.edges(data=True):
              edgedict["x"] = random.randint(0, 100000)
          gpubenchmark(
              cugraph.utilities.convert_from_nx,
              G,
              "x",
              do_renumber=do_renumber,
          )
      else:
          gpubenchmark(
              cugraph.utilities.convert_from_nx,
              G,
              do_renumber=do_renumber,
          )
  
file_path: cugraph/python/nx-cugraph/nx_cugraph/tests/bench_convert.py
imports: import random
  import networkx
  import numpy
  import pytest
  import nx_cugraph
label_desc: Use image node_id 2 for calling a global function with example usage: _bench_helper_cugraph(gpubenchmark, N, attr_kind, create_using, method, do_renumber) without return types