code: def test_stateful_keep_buffer(self):
      encoder = codecs.getincrementalencoder("jisx0213")()
      self.assertEqual(encoder.encode("\u00e6"), b"")
      self.assertRaises(UnicodeEncodeError, encoder.encode, "\u0123")
      self.assertEqual(encoder.encode("\u0300\u00e6"), b"\xab\xc4")
      self.assertRaises(UnicodeEncodeError, encoder.encode, "\u0123")
      self.assertEqual(encoder.reset(), None)
      self.assertEqual(encoder.encode("\u0300"), b"\xab\xdc")
      self.assertEqual(encoder.encode("\u00e6"), b"")
      self.assertRaises(UnicodeEncodeError, encoder.encode, "\u0123")
      self.assertEqual(encoder.encode("", True), b"\xa9\xdc")
  
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 3 for calling the Test_IncrementalEncoder obj's underlying member method code with example usage: obj.test_stateful_keep_buffer() without return types