code: def test_disable_indexing(on_disk_vectors):
      indexed_name = "test_collection_indexed"
      unindexed_name = "test_collection_unindexed"
  
      drop_collection(collection_name=indexed_name)
      drop_collection(collection_name=unindexed_name)
  
      def create_collection(
          collection_name, indexing_threshold, on_disk_vectors
      ):
          response = request_with_validation(
              api="/collections/{collection_name}",
              method="PUT",
              path_params={"collection_name": collection_name},
              body={
                  "vectors": {
                      "size": 256,
                      "distance": "Dot",
                      "on_disk": on_disk_vectors,
                  },
                  "optimizers_config": {
                      "indexing_threshold": indexing_threshold
                  },
              },
          )
          assert response.ok
  
      amount_of_vectors = 100
  
      # Collection with indexing enabled
      create_collection(indexed_name, 10, on_disk_vectors)
      insert_vectors(indexed_name, amount_of_vectors)
  
      # Collection with indexing disabled
      create_collection(unindexed_name, 0, on_disk_vectors)
      insert_vectors(unindexed_name, amount_of_vectors)
  
      while True:
          try:
              # Get info indexed
              response = request_with_validation(
                  method="GET",
                  api="/collections/{collection_name}",
                  path_params={"collection_name": indexed_name},
              )
              assert response.ok
  
              assert (
                  response.json()["result"]["vectors_count"]
                  == amount_of_vectors
              )
              assert (
                  response.json()["result"]["indexed_vectors_count"] > 0
              )
  
              # Get info unindexed
              response = request_with_validation(
                  method="GET",
                  api="/collections/{collection_name}",
                  path_params={"collection_name": unindexed_name},
              )
              assert response.ok
              assert (
                  response.json()["result"]["vectors_count"]
                  == amount_of_vectors
              )
              assert (
                  response.json()["result"]["indexed_vectors_count"]
                  == 0
              )
              break
          except AssertionError:
              sleep(0.1)
              continue
  
      # Cleanup
      drop_collection(collection_name=indexed_name)
      drop_collection(collection_name=unindexed_name)
  
file_path: qdrant/openapi/tests/openapi_integration/test_vector_config.py
imports: import random
  from time import sleep
  import pytest
  from .helpers.helpers import request_with_validation
  from .helpers.collection_setup import drop_collection
label_desc: Use image node_id 5 for calling a global function with example usage: test_disable_indexing(on_disk_vectors) without return types