code: def test_dask_mg_betweenness_centrality(
      dask_client, benchmark, input_expected_output
  ):
      dg = input_expected_output["MGGraph"]
      k = input_expected_output["k"]
      endpoints = input_expected_output["endpoints"]
      normalized = input_expected_output["normalized"]
      random_state = input_expected_output["subset_seed"]
      mg_bc_results = benchmark(
          dcg.betweenness_centrality,
          dg,
          k=k,
          normalized=normalized,
          endpoints=endpoints,
          random_state=random_state,
      )
  
      mg_bc_results = (
          mg_bc_results.compute()
          .sort_values("vertex")
          .reset_index(drop=True)
      )["betweenness_centrality"].to_cupy()
  
      sg_bc_results = (
          input_expected_output["sg_cugraph_results"]
          .sort_values("vertex")
          .reset_index(drop=True)
      )["betweenness_centrality"].to_cupy()
  
      diff = cupy.isclose(mg_bc_results, sg_bc_results)
  
      assert diff.all()
  
file_path: cugraph/python/cugraph/cugraph/tests/centrality/test_betweenness_centrality_mg.py
imports: import gc
  import pytest
  import dask_cudf
  import cupy
  import cudf
  import cugraph
  import cugraph.dask
  from cugraph.testing import utils
  from pylibcugraph.testing import gen_fixture_params_product
label_desc: Use image node_id 4 for calling a global function with example usage: test_dask_mg_betweenness_centrality(dask_client, benchmark, input_expected_output) without return types