code: def test_ragged_array_index(ragged):
      arr = numpy.array([2, 1, 4], dtype="i")
      r = ragged[arr]
      assert r.data.shape[0] == ragged.lengths[arr].sum()
  
file_path: thinc/thinc/tests/test_indexing.py
imports: import numpy
  import pytest
  from numpy.testing import assert_allclose
  from thinc.types import Pairs, Ragged
label_desc: Use image node_id 6 for calling a global function with example usage: test_ragged_array_index(ragged) without return types