code: def bioes_to_bio(labels):
      previous_label_without_bio = "O"
      new_labels = labels.copy()
      for i, label in enumerate(labels):
          label_without_bio = remove_bio_from_label_name(label)
          if label[:2] in ["I-", "E-"]:
              if previous_label_without_bio == label_without_bio:
                  new_labels[i] = "I-" + label_without_bio
              else:
                  new_labels[i] = "B-" + label_without_bio
          elif label[:2] in ["S-"]:
              new_labels[i] = "B-" + label_without_bio
          previous_label_without_bio = label_without_bio
      return new_labels
  
file_path: NeuroNER/neuroner/utils_nlp.py
imports: import codecs
  import os
  import re
  import numpy
  from neuroner import utils
label_desc: Use image node_id 9 for calling a global function with example usage: bioes_to_bio(labels) and returns: new_labels