code: def _trunc_text(input_text: list, length: list) -> list:
      """
      Truncating the input text according to the input length.
  
      :param input_text: The input text need to be truncated.
      :param length: The length used to truncated the text.
      :return: The truncated text.
      """
      return [row[: length[idx]] for idx, row in enumerate(input_text)]
  
file_path: MatchZoo/matchzoo/data_generator/callbacks/histogram.py
imports: import numpy
  import matchzoo
  from matchzoo.data_generator.callbacks import Callback
label_desc: Use image node_id 1 for calling a global function with example usage: _trunc_text(input_text, length) and returns: unknown