code: def bench_cgs_client_scaling_total_time(
      running_server_for_sampling_with_graph, num_clients
  ):
      graph_id = running_server_for_sampling_with_graph
  
      threads = []
      for _ in range(num_clients):
          sampling_function = create_sampling_client(
              _host, _port, graph_id
          )
          threads.append(Thread(target=sampling_function, args=[None]))
  
      with TimerContext():
          [t.start() for t in threads]
          [t.join() for t in threads]
  
file_path: cugraph/benchmarks/cugraph-service/pytest-based/bench_cgs_client_scaling.py
imports: from threading import Thread
  import pytest
  from cugraph_service_client import CugraphServiceClient, defaults
  from cugraph_service_server.testing import utils
  from cugraph_benchmarking import params
  from cugraph_benchmarking.timer import TimerContext
label_desc: Use image node_id 4 for calling a global function with example usage: bench_cgs_client_scaling_total_time(running_server_for_sampling_with_graph, num_clients) without return types