code: def test_surrogates(self):
      scanstring = self.json.decoder.scanstring
  
      def assertScan(given, expect):
          self.assertEqual(
              scanstring(given, 1, True), (expect, len(given))
          )
  
      assertScan('"z\\ud834\\u0079x"', "z\ud834yx")
      assertScan('"z\\ud834\\udd20x"', "z\U0001d120x")
      assertScan('"z\\ud834\\ud834\\udd20x"', "z\ud834\U0001d120x")
      assertScan('"z\\ud834x"', "z\ud834x")
      assertScan('"z\\ud834\udd20x12345"', "z\ud834\udd20x12345")
      assertScan('"z\\udd20x"', "z\udd20x")
      assertScan('"z\ud834\udd20x"', "z\ud834\udd20x")
      assertScan('"z\ud834\\udd20x"', "z\ud834\udd20x")
      assertScan('"z\ud834x"', "z\ud834x")
  
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 2 for calling the TestScanstring obj's underlying member method code with example usage: obj.test_surrogates() without return types