code: def reduce_last() -> Model[InT, OutT]:
      """Reduce ragged-formatted sequences to their last element."""
      return Model("reduce_last", forward)
  
imports: from typing import Callable, Tuple, cast
  from ..config import registry
  from ..model import Model
  from ..types import Floats2d, Ragged
  from ..util import ArrayInfo
label_desc: Use image node_id 1 for calling a global function with example usage: reduce_last() and returns: Model