code: def test_collection_update():
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="PATCH",
          path_params={"collection_name": collection_name},
          body={
              "vectors": {
                  default_name: {
                      "hnsw_config": {
                          "m": 32,
                          "ef_construct": 123,
                      },
                      "quantization_config": {
                          "scalar": {"type": "int8", "quantile": 0.8}
                      },
                  },
              },
              "sparse_vectors": {
                  "sparse-text": {
                      "index": {
                          "on_disk": True,
                      }
                  },
              },
              "optimizers_config": {
                  "default_segment_number": 6,
                  "indexing_threshold": 10000,
              },
          },
      )
      assert response.ok
  
      response = request_with_validation(
          api="/collections/{collection_name}/points",
          method="PUT",
          path_params={"collection_name": collection_name},
          query_params={"wait": "true"},
          body={
              "points": [
                  {
                      "id": 7,
                      "vector": [0.15, 0.31, 0.76, 0.74],
                      "payload": {"city": "Rome"},
                  },
              ],
          },
      )
      assert response.ok
  
      response = request_with_validation(
          api="/collections/{collection_name}/points/{id}",
          method="GET",
          path_params={"collection_name": collection_name, "id": 7},
      )
      assert response.ok
  
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_collection_update() without return types