code: def _find_pairs(
      tokens_1: List[str], tokens_2: List[str]
  ) -> Tuple[int, int, int]:
      len_1, len_2 = len(tokens_1), len(tokens_2)
      for i_1 in range(len_1):
          for i_2 in range(len_2):
              if i_1 == i_2:
                  continue
              if tokens_1[i_1] == tokens_2[i_2]:
                  length = 1
                  while (
                      i_1 + length < len_1
                      and i_2 + length < len_2
                      and tokens_1[i_1 + length]
                      == tokens_2[i_2 + length]
                  ):
                      length += 1
                  yield i_1, i_2, length
  
file_path: vizseq/vizseq/scorers/_ter.py
imports: from typing import List, Tuple
  from functools import lru_cache
label_desc: Use image node_id 3 for calling a global function with example usage: _find_pairs(tokens_1, tokens_2) without return types