code: def insert_at_special_tokens_pos(
      seq, special_tokens_mask, insert_element
  ):
      """
      Adds elements to a sequence at the positions that align with special tokens.
      This is useful for expanding label ids or masks, so that they align with corresponding tokens (incl. the special tokens)
  
      Example:
  
      .. code-block:: python
  
        # Tokens:  ["CLS", "some", "words","SEP"]
        >>> special_tokens_mask =  [1,0,0,1]
        >>> lm_label_ids =  [12,200]
        >>> insert_at_special_tokens_pos(lm_label_ids, special_tokens_mask, insert_element=-1)
        [-1, 12, 200, -1]
  
      :param seq: List where you want to insert new elements
      :type seq: list
      :param special_tokens_mask: list with "1" for positions of special chars
      :type special_tokens_mask: list
      :param insert_element: the value you want to insert
      :return: list
  
      """
      new_seq = seq.copy()
      special_tokens_indices = np.where(
          np.array(special_tokens_mask) == 1
      )[0]
      for idx in special_tokens_indices:
          new_seq.insert(idx, insert_element)
      return new_seq
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import collections
  import json
  import logging
  import os
  import re
  from pathlib import Path
  import numpy
  from transformers import AlbertTokenizer, AlbertTokenizerFast, BertTokenizer, BertTokenizerFast, DistilBertTokenizer, DistilBertTokenizerFast, ElectraTokenizer, ElectraTokenizerFast, RobertaTokenizer, RobertaTokenizerFast, XLMRobertaTokenizer, XLMRobertaTokenizerFast, XLNetTokenizer, XLNetTokenizerFast, CamembertTokenizer, CamembertTokenizerFast, DPRContextEncoderTokenizer, DPRContextEncoderTokenizerFast, DPRQuestionEncoderTokenizer, DPRQuestionEncoderTokenizerFast, BigBirdTokenizer, BigBirdTokenizerFast
  from transformers.models.bert.tokenization_bert import load_vocab
  from transformers.tokenization_utils import PreTrainedTokenizer
  from transformers import AutoConfig
  from farm.data_handler.samples import SampleBasket
  from farm.modeling.wordembedding_utils import load_from_cache, EMBEDDING_VOCAB_FILES_MAP, run_split_on_punc
label_desc: Use image node_id 4 for calling a global function with example usage: insert_at_special_tokens_pos(seq, special_tokens_mask, insert_element) and returns: new_seq