code: def get_array_model():
      def _trim_array_forward(model, X, is_train):
          def backprop(dY):
              return model.ops.alloc2f(dY.shape[0], dY.shape[1] + 1)
  
          return X[:, :-1], backprop
  
      return with_array2d(Model("trimarray", _trim_array_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 10 for calling a global function with example usage: get_array_model() and returns: with_array2d, X,  backprop, model