code: def test_sparse_vector_config_update():
      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 not config["params"]["sparse_vectors"]["sparse-text"][
          "index"
      ]["on_disk"]
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="PATCH",
          path_params={"collection_name": collection_name},
          body={
              "sparse_vectors": {
                  "sparse-text": {
                      "index": {
                          "on_disk": True,
                      }
                  },
              },
          },
      )
      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"]["sparse_vectors"]["sparse-text"]["index"][
          "on_disk"
      ]
  
imports: import pytest
  from .helpers.collection_setup import drop_collection
  from .helpers.helpers import request_with_validation
label_desc: Use image node_id 3 for calling a global function with example usage: test_sparse_vector_config_update() without return types