code: def get_ragged_model():
      def _trim_ragged_forward(model, Xr, is_train):
          def backprop(dYr):
              dY = dYr.data
              dX = model.ops.alloc2f(dY.shape[0], dY.shape[1] + 1)
              return Ragged(dX, dYr.lengths)
  
          return Ragged(Xr.data[:, :-1], Xr.lengths), backprop
  
      return with_ragged(Model("trimragged", _trim_ragged_forward))
  
imports: import numpy
  import numpy.testing
  import pytest
  from thinc.api import Linear, Model, NumpyOps, noop, with_array, with_array2d, with_getitem, with_list, with_padded, with_ragged
  from thinc.types import Padded, Ragged
  from ..util import get_data_checker
label_desc: Use image node_id 13 for calling a global function with example usage: get_ragged_model() and returns: with_ragged, Ragged,  backprop, Ragged