code: def getstate(self):
      # additional state info from the base class must be None here,
      # as it isn't passed along to the caller
      state = codecs.BufferedIncrementalDecoder.getstate(self)[0]
      # additional state info we pass to the caller:
      # 0: stream is in natural order for this platform
      # 1: stream is in unnatural order
      # 2: endianness hasn't been determined yet
      if self.decoder is None:
          return (state, 2)
      addstate = int(
          (sys.byteorder == "big")
          != (self.decoder is codecs.utf_16_be_decode)
      )
      return (state, addstate)
  
imports: import codecs, sys
label_desc: Use image node_id 4 for calling the IncrementalDecoder obj's underlying member method code with example usage: obj.getstate() and returns: state,  addstate, state,  int