code: def split_text(text, n=100, character=" "):
      """Split the text every ``n``-th occurrence of ``character``"""
      text = text.split(character)
      return [
          character.join(text[i : i + n]).strip()
          for i in range(0, len(text), n)
      ]
  
file_path: transformers/examples/research_projects/rag-end2end-retriever/kb_encode_utils.py
imports: import os
  from functools import partial
  from glob import glob
  import faiss
  from datasets import Features, Sequence, Value, concatenate_datasets, load_dataset, load_from_disk
  from transformers import DPRContextEncoder, DPRContextEncoderTokenizerFast
label_desc: Use image node_id 1 for calling a global function with example usage: split_text(text, n, character) and returns: unknown