code: def test_points_retrieve():
      response = request_with_validation(
          api="/collections/{collection_name}/points/{id}",
          method="GET",
          path_params={"collection_name": collection_name, "id": 2},
      )
      assert response.ok
  
      response = request_with_validation(
          api="/collections/{collection_name}/points",
          method="POST",
          path_params={"collection_name": collection_name},
          body={"ids": [1, 2]},
      )
      assert response.ok
      assert len(response.json()["result"]) == 2
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="GET",
          path_params={"collection_name": collection_name},
      )
      assert response.ok
      assert response.json()["result"]["vectors_count"] == 10
  
      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},
      )
      assert response.ok
      assert len(response.json()["result"]) == 3
  
      response = request_with_validation(
          api="/collections/{collection_name}/points/search",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "filter": {
                  "should": [
                      {"key": "city", "match": {"value": "London"}}
                  ]
              },
              "vector": [0.2, 0.1, 0.9, 0.7],
              "limit": 3,
          },
      )
      assert response.ok
      # only 2 London records in collection
      assert len(response.json()["result"]) == 2
  
      response = request_with_validation(
          api="/collections/{collection_name}/points/scroll",
          method="POST",
          path_params={"collection_name": collection_name},
          body={"offset": 2, "limit": 2, "with_vector": True},
      )
      assert response.ok
      assert len(response.json()["result"]["points"]) == 2
  
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 2 for calling a global function with example usage: test_points_retrieve() without return types