code: def test_highly_nested_objects_decoding(self):
      # test that loading highly-nested objects doesn't segfault when C
      # accelerations are used. See #12017
      with self.assertRaises(RecursionError):
          with support.infinite_recursion():
              self.loads('{"a":' * 100000 + "1" + "}" * 100000)
      with self.assertRaises(RecursionError):
          with support.infinite_recursion():
              self.loads('{"a":' * 100000 + "[1]" + "}" * 100000)
      with self.assertRaises(RecursionError):
          with support.infinite_recursion():
              self.loads("[" * 100000 + "1" + "]" * 100000)
  
file_path: cpython/Lib/test/test_json/test_recursion.py
imports: from test import support
  from test.test_json import PyTest, CTest
label_desc: Use image node_id 4 for calling the TestRecursion obj's underlying member method code with example usage: obj.test_highly_nested_objects_decoding() without return types