code: def test_encode_evil_dict(self):
      class D(dict):
          def keys(self):
              return L
  
      class X:
          def __hash__(self):
              del L[0]
              return 1337
  
          def __lt__(self, o):
              return 0
  
      L = [X() for i in range(1122)]
      d = D()
      d[1337] = "true.dat"
      self.assertEqual(
          self.dumps(d, sort_keys=True), '{"1337": "true.dat"}'
      )
  
file_path: cpython/Lib/test/test_json/test_dump.py
imports: from io import StringIO
  from test.test_json import PyTest, CTest
  from test.support import bigmemtest, _1G
label_desc: Use image node_id 6 for calling the TestDump obj's underlying member method code with example usage: obj.test_encode_evil_dict() and returns: L, int, int