code: def segment_docs(input_data, n_sents, doc_delimiter):
      sent_delimiter = "\n\n"
      sents = input_data.split(sent_delimiter)
      docs = [
          sents[i : i + n_sents] for i in range(0, len(sents), n_sents)
      ]
      input_data = ""
      for doc in docs:
          input_data += sent_delimiter + doc_delimiter
          input_data += sent_delimiter.join(doc)
      return input_data
  
file_path: spaCy/spacy/training/converters/conll_ner_to_docs.py
imports: from wasabi import Printer
  from ...errors import Errors
  from ...tokens import Doc, Span
  from ...training import iob_to_biluo
  from ...util import get_lang_class, load_model
  from ..None import tags_to_entities
label_desc: Use image node_id 3 for calling a global function with example usage: segment_docs(input_data, n_sents, doc_delimiter) and returns: input_data