code: def test_is_null_condition():
      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": 5,
              "filter": {"should": [{"is_null": {"key": "city"}}]},
              "with_payload": True,
          },
      )
      assert response.ok
  
      json = response.json()
      assert len(json["result"]) == 1
  
      ids = [x["id"] for x in json["result"]]
      assert 7 in ids
  
      # With must_not (as recommended in docs)
      def must_not_is_null(field: str):
          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": 5,
                  "filter": {"must_not": [{"is_null": {"key": field}}]},
                  "with_payload": True,
              },
          )
          assert response.ok
  
          json = response.json()
          assert len(json["result"]) == 5
  
          ids = [x["id"] for x in json["result"]]
          assert 5 not in ids
          assert 6 not in ids
          assert 7 not in ids
          assert 1 in ids
          assert 2 in ids
  
      must_not_is_null("city")
      must_not_is_null("city[]")
  
file_path: qdrant/openapi/tests/openapi_integration/test_basic_retrieve_api.py
imports: import pytest
  from .helpers.collection_setup import basic_collection_setup, drop_collection
  from .helpers.helpers import request_with_validation
label_desc: Use image node_id 5 for calling a global function with example usage: test_is_null_condition() without return types