code: def basic_collection_setup(
      collection_name="test_collection",
      on_disk_vectors=False,
      on_disk_payload=False,
  ):
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="DELETE",
          path_params={"collection_name": collection_name},
      )
      assert response.ok
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="PUT",
          path_params={"collection_name": collection_name},
          body={
              "vectors": {
                  "size": 4,
                  "distance": "Dot",
                  "on_disk": on_disk_vectors,
              },
              "on_disk_payload": on_disk_payload,
          },
      )
      assert response.ok
  
      # Create index
      response = request_with_validation(
          api="/collections/{collection_name}/index",
          method="PUT",
          path_params={"collection_name": collection_name},
          query_params={"wait": "true"},
          body={
              "field_name": "title",
              "field_schema": {
                  "type": "text",
                  "tokenizer": "prefix",
              },
          },
      )
      assert response.ok
  
      response = request_with_validation(
          api="/collections/{collection_name}",
          method="GET",
          path_params={"collection_name": collection_name},
      )
      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": idx,
                      "vector": [random.random() for _ in range(4)],
                      "payload": {"title": title},
                  }
                  for idx, title in enumerate(texts)
              ]
          },
      )
      assert response.ok
  
imports: import random
  import pytest
  from .helpers.collection_setup import drop_collection
  from .helpers.helpers import request_with_validation
label_desc: Use image node_id 1 for calling a global function with example usage: basic_collection_setup(collection_name, on_disk_vectors, on_disk_payload) without return types