code: def time_randomwalk(graph, args):
      """
      Test cost time of random walk
      """
  
      start_time = time.time()
  
      # default setting for testing
      params = {"p": 0.25, "q": 4, "walk_length": 50}
  
      for i in range(args.runs):
          node2vec_random_walk(graph, graph.nodes(), **params)
      end_time = time.time()
      cost_time_avg = (end_time - start_time) / args.runs
      print(
          "Run dataset {} {} trials, mean run time: {:.3f}s".format(
              args.dataset, args.runs, cost_time_avg
          )
      )
  
imports: import time
  from dgl.sampling import node2vec_random_walk
  from model import Node2vecModel
  from utils import load_graph, parse_arguments
label_desc: Use image node_id 1 for calling a global function with example usage: time_randomwalk(graph, args) without return types