code: def setup():
      drop_collection(collection_name)
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="PUT",
          path_params={"collection_name": collection_name},
          body={
              "vectors": {
                  "size": dims,
                  "distance": "Euclid",
                  "on_disk": True,
              },
              "optimizers_config": {
                  "indexing_threshold": 0,
              },
          },
      )
      assert response.ok
  
      subprocess.run(
          [
              "bfb",
              "--collection-name",
              collection_name,
              "--skip-create",
              "--dim",
              str(dims),
              "--num-vectors",
              str(num_vectors),
              "--keywords",
              "300",
          ]
      )
  
      yield
      drop_collection(collection_name=collection_name)
  
file_path: qdrant/openapi/tests/openapi_integration/test_timeout.py
imports: import os
  from random import random
  import subprocess
  import pytest
  from .helpers.helpers import request_with_validation
  from .helpers.collection_setup import basic_collection_setup, drop_collection
label_desc: Use image node_id 1 for calling a global function with example usage: setup() without return types