code: def test_stateless(self):
      # cp949 encoder isn't stateful at all.
      encoder = codecs.getincrementalencoder("cp949")()
      self.assertEqual(
          encoder.encode("\ud30c\uc774\uc36c \ub9c8\uc744"),
          b"\xc6\xc4\xc0\xcc\xbd\xe3 \xb8\xb6\xc0\xbb",
      )
      self.assertEqual(encoder.reset(), None)
      self.assertEqual(
          encoder.encode("\u2606\u223c\u2606", True),
          b"\xa1\xd9\xa1\xad\xa1\xd9",
      )
      self.assertEqual(encoder.reset(), None)
      self.assertEqual(encoder.encode("", True), b"")
      self.assertEqual(encoder.encode("", False), b"")
      self.assertEqual(encoder.reset(), None)
  
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 1 for calling the Test_IncrementalEncoder obj's underlying member method code with example usage: obj.test_stateless() without return types