code: def test_random_walks_nx(graph_file):
      G = graph_file.get_graph(
          create_using=cugraph.Graph(directed=True)
      )
  
      M = G.to_pandas_edgelist()
  
      source = G.source_columns
      target = G.destination_columns
      edge_attr = G.weight_column
  
      Gnx = nx.from_pandas_edgelist(
          M,
          source=source,
          target=target,
          edge_attr=edge_attr,
          create_using=nx.DiGraph(),
      )
      max_depth = random.randint(2, 10)
      path_data, seeds = calc_random_walks(
          Gnx, max_depth=max_depth, use_padding=True
      )
  
      check_random_walks_padded(Gnx, path_data, seeds, max_depth)
  
file_path: cugraph/python/cugraph/cugraph/tests/sampling/test_random_walks.py
imports: import gc
  import random
  import pytest
  import networkx
  import cudf
  import cugraph
  from cudf.testing import assert_series_equal
  from cugraph.utilities import ensure_cugraph_obj_for_nx
  from cugraph.testing import SMALL_DATASETS, DEFAULT_DATASETS
label_desc: Use image node_id 9 for calling a global function with example usage: test_random_walks_nx(graph_file) without return types