code: def deal_successive_space(text):
      """
      deal successive space character for text
      1. Replace ' '*3 with '<space>' which is real space is text
      2. Remove ' ', which is split token, not true space
      3. Replace '<space>' with ' ', to get real text
      :param text:
      :return:
      """
      text = text.replace(" " * 3, "<space>")
      text = text.replace(" ", "")
      text = text.replace("<space>", " ")
      return text
  
imports: import os
  import re
  import cv2
  import glob
  import copy
  import math
  import pickle
  import numpy
  from shapely.geometry import Polygon, MultiPoint
label_desc: Use image node_id 20 for calling a global function with example usage: deal_successive_space(text) and returns: text