code: def test_bad_escapes(self):
      scanstring = self.json.decoder.scanstring
      bad_escapes = [
          '"\\"',
          '"\\x"',
          '"\\u"',
          '"\\u0"',
          '"\\u01"',
          '"\\u012"',
          '"\\uz012"',
          '"\\u0z12"',
          '"\\u01z2"',
          '"\\u012z"',
          '"\\u0x12"',
          '"\\u0X12"',
          '"\\ud834\\"',
          '"\\ud834\\u"',
          '"\\ud834\\ud"',
          '"\\ud834\\udd"',
          '"\\ud834\\udd2"',
          '"\\ud834\\uzdd2"',
          '"\\ud834\\udzd2"',
          '"\\ud834\\uddz2"',
          '"\\ud834\\udd2z"',
          '"\\ud834\\u0x20"',
          '"\\ud834\\u0X20"',
      ]
      for s in bad_escapes:
          with self.assertRaises(self.JSONDecodeError, msg=s):
              scanstring(s, 1, True)
  
file_path: cpython/Lib/test/test_json/test_scanstring.py
imports: import sys
  from test.test_json import PyTest, CTest
label_desc: Use image node_id 3 for calling the TestScanstring obj's underlying member method code with example usage: obj.test_bad_escapes() without return types