code: def _handle_pos_limit(pos: List[int], limit: int) -> List[int]:
      """
      处理句子长度，设定句长限制
      Args :
          pos (List[int]) : 句子对应的List
          limit (int) : 限制的数
      Return :
          [p + limit + 1 for p in pos] (List[int]) : 处理后的结果
  
      """
      for i, p in enumerate(pos):
          if p > limit:
              pos[i] = limit
          if p < -limit:
              pos[i] = -limit
      return [p + limit + 1 for p in pos]
  
file_path: DeepKE/src/deepke/relation_extraction/standard/tools/preprocess.py
imports: import os
  import logging
  from collections import OrderedDict
  from typing import List, Dict
  from transformers import BertTokenizer
  from .serializer import Serializer
  from .vocab import Vocab
  import sys
  from utils import save_pkl, load_csv
label_desc: Use image node_id 1 for calling a global function with example usage: _handle_pos_limit(pos, limit) and returns: unknown