code: def test_incrementalencoder(self):
      encoder = codecs.getincrementalencoder(self.encoding)()
      output = b"".join(encoder.encode(char) for char in self.text)
      self.assertEqual(output, self.expected)
      self.assertEqual(encoder.encode("", final=True), self.reset)
      self.assertEqual(encoder.encode("", final=True), b"")
  
imports: import _multibytecodec
  import codecs
  import io
  import sys
  import textwrap
  import unittest
  from test import support
  from test.support import os_helper
  from test.support.os_helper import TESTFN
label_desc: Use image node_id 2 for calling the TestStateful obj's underlying member method code with example usage: obj.test_incrementalencoder() without return types