code: def test_edit_collection_params(on_disk_vectors, on_disk_payload):
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="GET",
          path_params={"collection_name": collection_name},
      )
      assert response.ok
      result = response.json()["result"]
      config = result["config"]
      assert "hnsw_config" not in config["params"]["vectors"]
      assert "quantization_config" not in config["params"]["vectors"]
      assert (
          config["params"]["vectors"]["text"]["on_disk"]
          == on_disk_vectors
      )
      assert not config["params"]["on_disk_payload"]
      assert config["hnsw_config"]["m"] == 16
      assert config["hnsw_config"]["ef_construct"] == 100
      assert config["quantization_config"] is None
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="PATCH",
          path_params={"collection_name": collection_name},
          body={
              "vectors": {
                  "text": {
                      "hnsw_config": {
                          "m": 32,
                      },
                      "quantization_config": {
                          "scalar": {"type": "int8", "quantile": 0.8}
                      },
                      "on_disk": True,
                  }
              },
              "hnsw_config": {
                  "ef_construct": 123,
              },
              "quantization_config": {
                  "scalar": {
                      "type": "int8",
                      "quantile": 0.99,
                      "always_ram": True,
                  }
              },
              "params": {
                  "on_disk_payload": on_disk_payload,
              },
          },
      )
      assert response.ok
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="GET",
          path_params={"collection_name": collection_name},
      )
      assert response.ok
      result = response.json()["result"]
      config = result["config"]
      assert (
          config["params"]["vectors"]["text"]["hnsw_config"]["m"] == 32
      )
      assert (
          config["params"]["vectors"]["text"]["quantization_config"][
              "scalar"
          ]["type"]
          == "int8"
      )
      assert (
          config["params"]["vectors"]["text"]["quantization_config"][
              "scalar"
          ]["quantile"]
          == 0.8
      )
      assert (
          "always_ram"
          not in config["params"]["vectors"]["text"][
              "quantization_config"
          ]["scalar"]
      )
      assert config["params"]["vectors"]["text"]["on_disk"]
      assert config["params"]["on_disk_payload"] == on_disk_payload
      assert config["hnsw_config"]["m"] == 16
      assert config["hnsw_config"]["ef_construct"] == 123
      assert config["quantization_config"]["scalar"]["type"] == "int8"
      assert config["quantization_config"]["scalar"]["quantile"] == 0.99
      assert config["quantization_config"]["scalar"]["always_ram"]
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="PATCH",
          path_params={"collection_name": collection_name},
          body={
              "vectors": {
                  "text": {
                      "hnsw_config": {
                          "m": 10,
                          "ef_construct": 100,
                      },
                      "quantization_config": {
                          "product": {
                              "compression": "x32",
                              "always_ram": True,
                          }
                      },
                      "on_disk": False,
                  },
              },
              "params": {
                  "on_disk_payload": not on_disk_payload,
              },
          },
      )
      assert response.ok
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="GET",
          path_params={"collection_name": collection_name},
      )
      assert response.ok
      result = response.json()["result"]
      config = result["config"]
      assert (
          config["params"]["vectors"]["text"]["hnsw_config"]["m"] == 10
      )
      assert (
          config["params"]["vectors"]["text"]["hnsw_config"][
              "ef_construct"
          ]
          == 100
      )
      assert (
          config["params"]["vectors"]["text"]["quantization_config"][
              "product"
          ]["compression"]
          == "x32"
      )
      assert config["params"]["vectors"]["text"]["quantization_config"][
          "product"
      ]["always_ram"]
      assert not config["params"]["vectors"]["text"]["on_disk"]
      assert config["params"]["on_disk_payload"] != on_disk_payload
      assert config["quantization_config"]["scalar"]["type"] == "int8"
      assert config["quantization_config"]["scalar"]["quantile"] == 0.99
      assert config["quantization_config"]["scalar"]["always_ram"]
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="PATCH",
          path_params={"collection_name": collection_name},
          body={
              "vectors": {
                  "text": {"quantization_config": "Disabled"},
              },
          },
      )
      assert response.ok
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="GET",
          path_params={"collection_name": collection_name},
      )
      assert response.ok
      result = response.json()["result"]
      config = result["config"]
      assert (
          config["params"]["vectors"]["text"].get("quantization_config")
          is None
      )
  
imports: import pytest
  from .helpers.collection_setup import drop_collection, multivec_collection_setup
  from .helpers.helpers import request_with_validation
label_desc: Use image node_id 3 for calling a global function with example usage: test_edit_collection_params(on_disk_vectors, on_disk_payload) without return types