code: def test_strong_connections():
      X1de = np.array([[0, 1, 0], [0, 0, 0], [0, 0, 0]])
      X2de = X1de + X1de.T
  
      X1sp = csgraph.csgraph_from_dense(X1de, null_value=0)
      X2sp = csgraph.csgraph_from_dense(X2de, null_value=0)
  
      for X in X1sp, X1de:
          n_components, labels = csgraph.connected_components(
              X, directed=True, connection="strong"
          )
  
          assert_equal(n_components, 3)
          labels.sort()
          assert_array_almost_equal(labels, [0, 1, 2])
  
      for X in X2sp, X2de:
          n_components, labels = csgraph.connected_components(
              X, directed=True, connection="strong"
          )
  
          assert_equal(n_components, 2)
          labels.sort()
          assert_array_almost_equal(labels, [0, 0, 1])
  
file_path: catboost/contrib/python/scipy/py3/scipy/sparse/csgraph/tests/test_connected_components.py
imports: import numpy
  from numpy.testing import assert_equal, assert_array_almost_equal
  from scipy.sparse import csgraph
label_desc: Use image node_id 2 for calling a global function with example usage: test_strong_connections() without return types