code: def _check_laplacian(A, desired_L, desired_d, normed, use_out_degree):
      for arr_type in np.array, sparse.csr_matrix, sparse.coo_matrix:
          for t in int, float, complex:
              adj = arr_type(A, dtype=t)
              L = csgraph.laplacian(
                  adj,
                  normed=normed,
                  return_diag=False,
                  use_out_degree=use_out_degree,
              )
              _assert_allclose_sparse(L, desired_L, atol=1e-12)
              L, d = csgraph.laplacian(
                  adj,
                  normed=normed,
                  return_diag=True,
                  use_out_degree=use_out_degree,
              )
              _assert_allclose_sparse(L, desired_L, atol=1e-12)
              _assert_allclose_sparse(d, desired_d, atol=1e-12)
  
file_path: catboost/contrib/python/scipy/py3/scipy/sparse/csgraph/tests/test_graph_laplacian.py
imports: 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 6 for calling a global function with example usage: _check_laplacian(A, desired_L, desired_d, normed, use_out_degree) without return types