code: def test_float(self):
      self.assertEqual(json.dumps(AlternateFloat(1.0)), "1.0")
      self.assertEqual(json.dumps(AlternateFloat(-1.0)), "-1.0")
      self.assertEqual(
          json.loads(json.dumps({AlternateFloat(1.0): 1})), {"1.0": 1}
      )
  
file_path: catboost/contrib/python/simplejson/py2/simplejson/tests/test_subclass.py
imports: from unittest import TestCase
  import simplejson
  from decimal import Decimal
label_desc: Use image node_id 2 for calling the TestSubclass obj's underlying member method code with example usage: obj.test_float() without return types