code: def test_dictrecursion(self):
      x = {}
      x["test"] = x
      try:
          self.dumps(x)
      except ValueError:
          pass
      else:
          self.fail("didn't raise ValueError on dict recursion")
      x = {}
      y = {"a": x, "b": x}
      # ensure that the marker is cleared
      self.dumps(x)
  
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 2 for calling the TestRecursion obj's underlying member method code with example usage: obj.test_dictrecursion() without return types