code: def encode(input, errors="strict"):
      return (
          codecs.BOM_UTF8 + codecs.utf_8_encode(input, errors)[0],
          len(input),
      )
  
imports: import codecs
label_desc: Use image node_id 1 for calling a global function with example usage: encode(input, errors) and returns: unknown,  len