code: def encode(self, input, final=False):
      if self.first:
          self.first = 0
          return (
              codecs.BOM_UTF8
              + codecs.utf_8_encode(input, self.errors)[0]
          )
      else:
          return codecs.utf_8_encode(input, self.errors)[0]
  
imports: import codecs
label_desc: Use image node_id 2 for calling the IncrementalEncoder obj's underlying member method code with example usage: obj.encode(input, final) and returns: unknown, codecs