code: def test_degenerates_deny(self):
      for f in (PosInf, NegInf, NaN):
          self.assertRaises(ValueError, json.dumps, f, allow_nan=False)
  
file_path: catboost/contrib/python/simplejson/py3/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 3 for calling the TestFloat obj's underlying member method code with example usage: obj.test_degenerates_deny() without return types