code: def encode(self, input, final=False):
      if final:
          c = self.compressobj.compress(input)
          return c + self.compressobj.flush()
      else:
          return self.compressobj.compress(input)
  
imports: import codecs
  import bz2
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, self