code: def correctness_sparse(a, b, atol=0.1, rtol=0.2, threshold=0.95):
      n_ref_zeros = (a == 0).sum()
      n_ref_non_zero_elms = a.size - n_ref_zeros
      n_correct = (cp.abs(a - b) <= (atol + rtol * cp.abs(b))).sum()
      correctness = (n_correct - n_ref_zeros) / n_ref_non_zero_elms
      return correctness >= threshold
  
file_path: cuml/python/cuml/tests/test_simpl_set.py
imports: import platform
  from cuml.manifold.umap import simplicial_set_embedding
  from cuml.manifold.umap import fuzzy_simplicial_set
  from cuml.neighbors import NearestNeighbors
  from cuml.manifold.umap import UMAP
  from cuml.internals.safe_imports import gpu_only_import
  import pytest
  from cuml.datasets import make_blobs
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 2 for calling a global function with example usage: correctness_sparse(a, b, atol, rtol, threshold) and returns: unknown