code: def strip_whitespace(y):
      label_text = y["text"]
      lstripped = label_text.lstrip()
      new_start = y["start"] + (len(label_text) - len(lstripped))
      stripped = label_text.strip()
      return {
          "text": label_text.strip(),
          "start": new_start,
          "end": new_start + len(stripped),
          "label": y["label"],
      }
  
imports: import os
  import copy
  from functools import partial
  from collections import defaultdict, OrderedDict
  import numpy
  from sklearn.metrics import confusion_matrix
  from tensorflow.python.platform import gfile
  from tensorflow.python.summary import summary_iterator
  import tabulate
  from finetune.encoding.input_encoder import get_spacy
label_desc: Use image node_id 13 for calling a global function with example usage: strip_whitespace(y) and returns: dict