code: def _get_truncation_mask_drop_from_end(
      shape: Tuple[int, int],
      split_lengths: List[int],
      align: Ragged,
      max_length: int,
  ) -> numpy.ndarray:
      """Return a two-dimensional boolean mask, indicating whether wordpieces
      are dropped from their sequences.
  
      Drop wordpieces from the end of the sequence.
      """
      mask = numpy.ones(shape, dtype="bool")
      mask[:, max_length:] = 0
      return mask
  
imports: from typing import Tuple, List, Union, TypeVar
  import numpy
  from thinc.types import Ragged, Ints2d, Floats2d
  from .data_classes import WordpieceBatch
label_desc: Use image node_id 2 for calling a global function with example usage: _get_truncation_mask_drop_from_end(shape, split_lengths, align, max_length) and returns: mask