docstr: build sentence type id, add [CLS] [SEP]
docstr_tok: ["build","sentence","type","id",",","add","[","CLS","]","[","SEP","]"]
code: def build_for_ernie(self, text_id, pair_id=[]):
      """build sentence type id, add [CLS] [SEP]"""
      text_id_type = np.zeros_like(text_id, dtype=np.int64)
      ret_id = np.concatenate(
          [[self.cls_id], text_id, [self.sep_id]], 0
      )
      ret_id_type = np.concatenate([[0], text_id_type, [0]], 0)
  
      if len(pair_id):
          pair_id_type = np.ones_like(pair_id, dtype=np.int64)
          ret_id = np.concatenate([ret_id, pair_id, [self.sep_id]], 0)
          ret_id_type = np.concatenate(
              [ret_id_type, pair_id_type, [1]], 0
          )
      return ret_id, ret_id_type
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import logging
  import os
  import re
  import sys
  import tempfile
  from functools import partial
  from pathlib import Path
  import six
  from tqdm import tqdm
  import numpy
  from disco_diffusion_ernievil_base.vit_b_16x.ernievil2.transformers.file_utils import _fetch_from_remote
  import io
label_desc: Use image node_id 6 for calling the ErnieTokenizer obj's underlying member method code with example usage: obj.build_for_ernie(text_id, pair_id) and returns: ret_id,  ret_id_type