class_docstr: Builder class for BertExample objects.
class_docstr_tok: ["Builder","class","for","BertExample","objects","."]
docstr: Returns truncated version of x according to the self._max_seq_length.
docstr_tok: ["Returns","truncated","version","of","x","according","to","the","self._max_seq_length","."]
code: def _truncate_list(
      self, x: Union[List[str], List[int]]
  ) -> Union[List[str], List[int]]:
      """Returns truncated version of x according to the self._max_seq_length."""
      # Save two slots for the first [CLS] token and the last [SEP] token.
      return x[: self._max_seq_length - 2]
  
imports: import logging
  from collections import OrderedDict
  from os import path
  from typing import Dict, List, Optional, Tuple, Union
  from transformers import PreTrainedTokenizerBase
  from nemo.collections.nlp.data.text_normalization_as_tagging.tagging import EditingTask, Tag
  from nemo.collections.nlp.data.text_normalization_as_tagging.utils import yield_sources_and_targets
label_desc: Use image node_id 4 for calling the BertExampleBuilder obj's underlying member method code with example usage: obj._truncate_list(x) and returns: x