code: def dumps(self, obj, **kw):
      sio = StringIO()
      json.dump(obj, sio, **kw)
      res = json.dumps(obj, **kw)
      self.assertEqual(res, sio.getvalue())
      return res
  
file_path: catboost/contrib/python/simplejson/py3/simplejson/tests/test_decimal.py
imports: import decimal
  from decimal import Decimal
  from unittest import TestCase
  from simplejson.compat import StringIO, reload_module
  import simplejson
label_desc: Use image node_id 1 for calling the TestDecimal obj's underlying member method code with example usage: obj.dumps(obj) and returns: res