code: def split_text(text, start_position, remove_char_each_side, seq):
      # first part of the text
      punctuations = ".!?"
      pos = start_position - remove_char_each_side
      text_first = ""
      while pos > 0 and not text[pos] in punctuations:
          pos -= 1
      if pos > 0:
          text_first = text[0 : pos + 1]
  
      # add length of seq and remove_char_each_side
      pos = start_position + len(seq) + remove_char_each_side
  
      # last part of the text
      text_second = ""
      while pos < len(text) and not text[pos] in punctuations:
          pos += 1
      if pos + 1 < len(text):
          text_second = text[pos + 1 : len(text)]
  
      return text_first, text_second
  
imports: import argparse
  from functools import partial
  import json
  import multiprocessing
  import nltk
  import pickle
  import re
  import string
  import sys
  import time
label_desc: Use image node_id 2 for calling a global function with example usage: split_text(text, start_position, remove_char_each_side, seq) and returns: text_first,  text_second