code: def compare_overlap(cu_coeff, cpu_coeff):
      assert len(cu_coeff) == len(cpu_coeff)
      for i in range(len(cu_coeff)):
          if np.isnan(cpu_coeff[i]):
              assert np.isnan(cu_coeff[i])
          elif np.isnan(cu_coeff[i]):
              assert cpu_coeff[i] == cu_coeff[i]
          else:
              diff = abs(cpu_coeff[i] - cu_coeff[i])
              assert diff < 1.0e-6
  
imports: import gc
  import pytest
  import numpy
  import scipy
  import cudf
  import cugraph
  from cugraph.testing import utils, UNDIRECTED_DATASETS
  from cudf.testing import assert_series_equal
  from cudf.testing.testing import assert_frame_equal
label_desc: Use image node_id 2 for calling a global function with example usage: compare_overlap(cu_coeff, cpu_coeff) without return types