code: def test_tarjan_cycle():
      cycle_graph = np.array([0, 3, 1, 2])
      result = tarjan(cycle_graph)
      expected = np.array([False, True, True, True])
      assert len(result) == 1
      np.testing.assert_array_equal(result[0], expected)
  
      cycle_graph = np.array([0, 3, 1, 2, 5, 6, 4])
      result = tarjan(cycle_graph)
      assert len(result) == 2
      expected = [
          np.array([False, True, True, True, False, False, False]),
          np.array([False, False, False, False, True, True, True]),
      ]
      for r, e in zip(result, expected):
          np.testing.assert_array_equal(r, e)
  
imports: import numpy
  import pytest
  from stanza.models.common.chuliu_edmonds import tarjan
label_desc: Use image node_id 2 for calling a global function with example usage: test_tarjan_cycle() without return types