code: def test_invalid(self):
      with self.assertRaises(ValueError) as cm:
          geojson.loads(
              '{"type":"Point", "coordinates":[[-Infinity, 4.0]]}'
          )
  
      self.assertIn("is not JSON compliant", str(cm.exception))
  
file_path: geojson/tests/test_geo_interface.py
imports: import unittest
  import geojson
  from geojson.mapping import to_mapping
label_desc: Use image node_id 6 for calling the EncodingDecodingTest obj's underlying member method code with example usage: obj.test_invalid() without return types