code: def test_int64_indices_directed():
      # See https://github.com/scipy/scipy/issues/18716
      g = csr_array(
          ([1], np.array([[0], [1]], dtype=np.int64)), shape=(2, 2)
      )
      assert g.indices.dtype == np.int64
      n, labels = csgraph.connected_components(
          g, directed=True, connection="strong"
      )
      assert n == 2
      assert_array_almost_equal(labels, [1, 0])
  
file_path: scipy/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, csr_array
label_desc: Use image node_id 8 for calling a global function with example usage: test_int64_indices_directed() without return types