code: def test_geo_polygon_invalid():
      # invalid polygons should be rejected
      response = request_with_validation(
          api="/collections/{collection_name}/points/search",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "vector": [0.2, 0.1, 0.9, 0.7],
              "limit": 3,
              "filter": {
                  "must": [
                      {
                          "key": "location",
                          "geo_polygon": {
                              "exterior": {
                                  "points": [
                                      {"lon": -180.0, "lat": -90.0},
                                      {"lon": 180.0, "lat": -90.0},
                                      {"lon": 180.0, "lat": 90.0},
                                      {"lon": -180.0, "lat": 90.0},
                                  ]
                              },
                          },
                      }
                  ]
              },
          },
      )
      assert not response.ok
  
      response = request_with_validation(
          api="/collections/{collection_name}/points/search",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "vector": [0.2, 0.1, 0.9, 0.7],
              "limit": 3,
              "filter": {
                  "must": [
                      {
                          "key": "location",
                          "geo_polygon": {
                              "exterior": {
                                  "points": [
                                      {"lon": -180.0, "lat": -90.0},
                                      {"lon": 180.0, "lat": -90.0},
                                      {"lon": -180.0, "lat": -90.0},
                                  ]
                              },
                          },
                      }
                  ]
              },
          },
      )
      assert not response.ok
  
imports: import pytest
  from .helpers.helpers import request_with_validation
  from .helpers.collection_setup import geo_collection_setup, drop_collection
label_desc: Use image node_id 4 for calling a global function with example usage: test_geo_polygon_invalid() without return types