code: def _array_forward(
      layer: Model[Padded, Padded], X: Floats3d, is_train
  ) -> Tuple[Floats3d, Callable]:
      # Create bogus metadata for Padded.
      Xp = _get_padded(layer, X)
      Yp, get_dXp = layer(Xp, is_train)
      size_at_t = Xp.size_at_t
      lengths = Xp.lengths
      indices = Xp.indices
  
      def backprop(dY: Floats3d) -> Floats3d:
          dYp = Padded(dY, size_at_t, lengths, indices)
          dXp = get_dXp(dYp)
          return dXp.data
  
      return cast(Floats3d, Yp.data), backprop
  
file_path: thinc/thinc/layers/with_padded.py
imports: from typing import Callable, List, Optional, Tuple, TypeVar, Union, cast
  from ..config import registry
  from ..model import Model
  from ..types import Array2d, Floats3d, Ints1d, List2d, Padded, Ragged
  from ..util import is_xp_array
label_desc: Use image node_id 6 for calling a global function with example usage: _array_forward(layer, X, is_train) and returns: cast,  backprop, dXp