code: def _assert_allclose_sparse(a, b, **kwargs):
      # helper function that can deal with sparse matrices
      if sparse.issparse(a):
          a = a.toarray()
      if sparse.issparse(b):
          b = a.toarray()
      assert_allclose(a, b, **kwargs)
  
file_path: catboost/contrib/python/scipy/py2/scipy/sparse/csgraph/tests/test_graph_laplacian.py
imports: from __future__ import division, print_function, absolute_import
  import numpy
  from numpy.testing import assert_allclose, assert_array_almost_equal
  from pytest import raises
  from scipy import sparse
  from scipy.sparse import csgraph
label_desc: Use image node_id 5 for calling a global function with example usage: _assert_allclose_sparse(a, b) without return types