code: def ptb_detokenizer(string):
      string = string.replace(" '", "'")
      string = string.replace(" \n", "\n")
      string = string.replace("\n ", "\n")
      string = string.replace(" n't", "n't")
      string = string.replace(" N ", "1 ")
      string = string.replace("$ 1", "$1")
      string = string.replace("# 1", "#1")
      return string
  
imports: import re
label_desc: Use image node_id 1 for calling a global function with example usage: ptb_detokenizer(string) and returns: string