(tokens: List[Any], start1: int, start2: int,
                    span: int)
return True, start1 + span - 1
Given a sequence of tokens, test if two subspans are equal.

  Args:
    tokens: list of tokens to compare.
    start1: start index of subspan 1.
    start2: start index of subspan 2.
    span: length of the span.

  Returns:
    is_equal: two subspans are equal.
    last_match: index of last matching tokens.
Given a sequence of tokens, test if two subspans are equal.
Given a sequence of tokens test if two subspans are equal .
def _tokens_compare(tokens: List[Any], start1: int, start2: int,
                    span: int) -> Tuple[bool, int]:
  """Given a sequence of tokens, test if two subspans are equal.

  Args:
    tokens: list of tokens to compare.
    start1: start index of subspan 1.
    start2: start index of subspan 2.
    span: length of the span.

  Returns:
    is_equal: two subspans are equal.
    last_match: index of last matching tokens.
  """
  for i in range(span):
    if tokens[start1 + i] != tokens[start2 + i]:
      return False, start1 + i
  return True, start1 + span - 1
def _tokens_compare ( tokens : List [ Any ] , start1 : int , start2 : int , span : int ) -> Tuple [ bool , int ] : for i in range ( span ) : if tokens [ start1 + i ] != tokens [ start2 + i ] : return False , start1 + i return True , start1 + span - 1