code: def remap_labels(sents, remap):
      new_sentences = []
      for sentence in sents:
          new_sent = []
          for word in sentence:
              new_sent.append([word[0], remap.get(word[1], word[1])])
          new_sentences.append(new_sent)
      return new_sentences
  
imports: import os
  import random
  from collections import Counter
label_desc: Use image node_id 3 for calling a global function with example usage: remap_labels(sents, remap) and returns: new_sentences