code: def decode(input, errors="strict"):
      prefix = 0
      if input[:3] == codecs.BOM_UTF8:
          input = input[3:]
          prefix = 3
      (output, consumed) = codecs.utf_8_decode(input, errors, True)
      return (output, consumed + prefix)
  
imports: import codecs
label_desc: Use image node_id 2 for calling a global function with example usage: decode(input, errors) and returns: output,  unknown