code: def test_degenerates_allow(self):
      for inf in (PosInf, NegInf):
          self.assertEqual(json.loads(json.dumps(inf)), inf)
      # Python 2.5 doesn't have math.isnan
      nan = json.loads(json.dumps(NaN))
      self.assertTrue((0 + nan) != nan)
  
file_path: catboost/contrib/python/simplejson/py2/simplejson/tests/test_float.py
imports: import math
  from unittest import TestCase
  from simplejson.compat import long_type, text_type
  import simplejson
  from simplejson.decoder import NaN, PosInf, NegInf
label_desc: Use image node_id 1 for calling the TestFloat obj's underlying member method code with example usage: obj.test_degenerates_allow() without return types