code: def insertSpace(token, text):
      sidx = 0
      while True:
          sidx = text.find(token, sidx)
          if sidx == -1:
              break
          if (
              sidx + 1 < len(text)
              and re.match("[0-9]", text[sidx - 1])
              and re.match("[0-9]", text[sidx + 1])
          ):
              sidx += 1
              continue
          if text[sidx - 1] != " ":
              text = text[:sidx] + " " + text[sidx:]
              sidx += 1
          if (
              sidx + len(token) < len(text)
              and text[sidx + len(token)] != " "
          ):
              text = text[: sidx + 1] + " " + text[sidx + 1 :]
          sidx += 1
      return text
  
imports: from itertools import product
  from statistics import mean
  from typing import Any, Dict, List, Optional, Set, Tuple
  import json
  import logging
  import os
  import re
  import shutil
  from tqdm import tqdm
  from speechbrain.utils.data_utils import download_file
label_desc: Use image node_id 11 for calling a global function with example usage: insertSpace(token, text) and returns: text