code: def assert_points(points, nonexisting_ids=None, with_vectors=False):
      ids = [point["id"] for point in points]
      ids.extend(nonexisting_ids or [])
  
      if not with_vectors:
          for point in points:
              point["vector"] = None
  
      response = request_with_validation(
          api="/collections/{collection_name}/points",
          method="POST",
          path_params={"collection_name": collection_name},
          body={
              "ids": ids,
              "with_vector": with_vectors,
              "with_payload": True,
          },
      )
      assert response.ok
  
      assert sorted(
          response.json()["result"], key=itemgetter("id")
      ) == sorted(points, key=itemgetter("id"))
  
imports: import pytest
  from .helpers.helpers import request_with_validation
  from .helpers.collection_setup import basic_collection_setup, drop_collection
  from operator import itemgetter
label_desc: Use image node_id 2 for calling a global function with example usage: assert_points(points, nonexisting_ids, with_vectors) without return types