code: def test_iso2022(self):
      decoder = codecs.getincrementaldecoder("iso2022-jp")()
      ESC = b"\x1b"
      self.assertEqual(decoder.decode(ESC + b"("), "")
      self.assertEqual(decoder.decode(b"B", True), "")
      self.assertEqual(decoder.decode(ESC + b"$"), "")
      self.assertEqual(decoder.decode(b"B@$"), "\u4e16")
      self.assertEqual(decoder.decode(b"@$@"), "\u4e16")
      self.assertEqual(decoder.decode(b"$", True), "\u4e16")
      self.assertEqual(decoder.reset(), None)
      self.assertEqual(decoder.decode(b"@$"), "@$")
      self.assertEqual(decoder.decode(ESC + b"$"), "")
      self.assertRaises(UnicodeDecodeError, decoder.decode, b"", True)
      self.assertEqual(decoder.decode(b"B@$"), "\u4e16")
  
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_IncrementalDecoder obj's underlying member method code with example usage: obj.test_iso2022() without return types