code: def test_hungarian(v1_size, v2_size, weight_limit):
      v1, g, m = create_random_bipartite(
          v1_size, v2_size, weight_limit, np.float64
      )
  
      start = timer()
      cugraph_cost, matching = cugraph.hungarian(g, v1)
      end = timer()
  
      print("cugraph time: ", (end - start))
  
      start = timer()
      np_matching = linear_sum_assignment(m)
      end = timer()
  
      print("scipy time: ", (end - start))
  
      scipy_cost = m[np_matching[0], np_matching[1]].sum()
  
      assert scipy_cost == cugraph_cost
  
file_path: cugraph/python/cugraph/cugraph/tests/linear/test_hungarian.py
imports: import gc
  from timeit import default_timer
  import numpy
  import pytest
  import cudf
  import cugraph
  from scipy.optimize import linear_sum_assignment
label_desc: Use image node_id 3 for calling a global function with example usage: test_hungarian(v1_size, v2_size, weight_limit) without return types