code: def test_symmetric_graph_laplacian():
      symmetric_mats = (
          "np.arange(10) * np.arange(10)[:, np.newaxis]",
          "np.ones((7, 7))",
          "np.eye(19)",
          "sparse.diags([1, 1], [-1, 1], shape=(4,4))",
          "sparse.diags([1, 1], [-1, 1], shape=(4,4)).todense()",
          "np.asarray(sparse.diags([1, 1], [-1, 1], shape=(4,4)).todense())",
          "np.vander(np.arange(4)) + np.vander(np.arange(4)).T",
      )
      for mat_str in symmetric_mats:
          for normed in True, False:
              _check_symmetric_graph_laplacian(mat_str, normed)
  
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 4 for calling a global function with example usage: test_symmetric_graph_laplacian() without return types