code: def get_uniform_neighbor_sample_args(
      G, num_verts, seed, batch_size, fanout, with_replacement
  ):
      """
      Return a dictionary containing the args for uniform_neighbor_sample based
      on the graph and desired args passed in. For example, if a large start list
      and small fanout list is desired, a "large" (based on graph size) list of
      valid vert IDs for the graph passed in and a "small" list of fanout values
      will be returned.
  
      The dictionary return value allows for easily supporting other args without
      having to maintain an order of values in a return tuple, for example.
      """
      if with_replacement not in [True, False]:
          raise ValueError(f"got unexpected value {with_replacement=}")
  
      num_start_verts = batch_size
  
      # Create the start_list on the server, since generating a list of actual
      # IDs requires unrenumbering steps that cannot be easily done remotely.
      start_list = G._client.call_extension(
          "gen_vertex_list", G._graph_id, num_start_verts, num_verts
      )
  
      return {
          "start_list": list(start_list),
          "fanout": fanout,
          "with_replacement": with_replacement,
      }
  
file_path: cugraph/benchmarks/cugraph-service/pytest-based/bench_cgs_uniform_neighbor_sample.py
imports: import os
  from pathlib import Path
  import pytest
  import numpy
  from cugraph_service_client import CugraphServiceClient
  from cugraph_service_client.exceptions import CugraphServiceError
  from cugraph_service_client import RemoteGraph
  from cugraph_service_server.testing import utils
  from cugraph_benchmarking import params
  from cugraph_benchmarking.timer import TimerContext
label_desc: Use image node_id 2 for calling a global function with example usage: get_uniform_neighbor_sample_args(G, num_verts, seed, batch_size, fanout, with_replacement) and returns: dict