code: def test_stateful(self):
      # jisx0213 encoder is stateful for a few code points. eg)
      #   U+00E6 => A9DC
      #   U+00E6 U+0300 => ABC4
      #   U+0300 => ABDC
  
      encoder = codecs.getincrementalencoder("jisx0213")()
      self.assertEqual(encoder.encode("\u00e6\u0300"), b"\xab\xc4")
      self.assertEqual(encoder.encode("\u00e6"), b"")
      self.assertEqual(encoder.encode("\u0300"), b"\xab\xc4")
      self.assertEqual(encoder.encode("\u00e6", True), b"\xa9\xdc")
  
      self.assertEqual(encoder.reset(), None)
      self.assertEqual(encoder.encode("\u0300"), b"\xab\xdc")
  
      self.assertEqual(encoder.encode("\u00e6"), b"")
      self.assertEqual(encoder.encode("", True), b"\xa9\xdc")
      self.assertEqual(encoder.encode("", 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 Test_IncrementalEncoder obj's underlying member method code with example usage: obj.test_stateful() without return types