code: def test_invalid_multipolygon(self):
      with self.assertRaises(ValueError) as cm:
          geojson.MultiPolygon([1], validate=True)
  
      self.assertIn(
          "Each polygon must be a list of linear rings",
          str(cm.exception),
      )
  
      poly1 = [
          (2.38, 57.322),
          (23.194, -20.28),
          (-120.43, 19.15),
          (25.44, -17.91),
      ]
      poly2 = [
          (2.38, 57.322),
          (23.194, -20.28),
          (-120.43, 19.15),
          (2.38, 57.322),
      ]
      multipoly = geojson.MultiPolygon([poly1, poly2])
      self.assertEqual(multipoly.is_valid, False)
  
imports: import unittest
  import geojson
label_desc: Use image node_id 1 for calling the TestValidationMultiPolygon obj's underlying member method code with example usage: obj.test_invalid_multipolygon() without return types