code: def test_large_list(self, size):
      N = int(30 * 1024 * 1024 * (size / _1G))
      l = [1] * N
      encoded = self.dumps(l)
      self.assertEqual(len(encoded), N * 3)
      self.assertEqual(encoded[:1], "[")
      self.assertEqual(encoded[-2:], "1]")
      self.assertEqual(encoded[1:-2], "1, " * (N - 1))
  
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 1 for calling the TestCDump obj's underlying member method code with example usage: obj.test_large_list(size) without return types