code: def test_sort_keys(self):
      # https://github.com/simplejson/simplejson/issues/106
      for num_keys in range(2, 32):
          p = dict((str(x), x) for x in range(num_keys))
          sio = StringIO()
          json.dump(p, sio, sort_keys=True)
          self.assertEqual(
              sio.getvalue(), json.dumps(p, sort_keys=True)
          )
          self.assertEqual(json.loads(sio.getvalue()), p)
  
imports: from unittest import TestCase
  from simplejson.compat import StringIO, long_type, b, binary_type, text_type, PY3
  import simplejson
label_desc: Use image node_id 9 for calling the TestDump obj's underlying member method code with example usage: obj.test_sort_keys() without return types