code: def _ragged_forward(
      model: Model[SeqT, SeqT], Xr: Ragged, is_train: bool
  ) -> Tuple[Ragged, Callable]:
      layer: Model[ArrayXd, ArrayXd] = model.layers[0]
      Y, get_dX = layer(Xr.dataXd, is_train)
  
      def backprop(dYr: Ragged) -> Ragged:
          return Ragged(get_dX(dYr.dataXd), dYr.lengths)
  
      return Ragged(Y, Xr.lengths), backprop
  
file_path: thinc/thinc/layers/with_array.py
imports: from typing import Callable, Optional, Tuple, TypeVar, Union, cast
  from ..backends import NumpyOps
  from ..config import registry
  from ..model import Model
  from ..types import Array3d, ArrayXd, ListXd, Padded, Ragged
label_desc: Use image node_id 6 for calling a global function with example usage: _ragged_forward(model, Xr, is_train) and returns: Ragged,  backprop, Ragged