code: def create_from_collection(
      collection_name,
      source_collection_name,
      size,
      distance,
      on_disk_vectors,
      on_disk_payload,
  ):
      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": size,
                  "distance": distance,
                  "on_disk": on_disk_vectors,
              },
              "on_disk_payload": on_disk_payload,
              "init_from": {"collection": source_collection_name},
          },
      )
      return response
  
file_path: qdrant/openapi/tests/openapi_integration/test_init_from_collection.py
imports: import pytest
  from .helpers.collection_setup import drop_collection
  from .helpers.helpers import request_with_validation
label_desc: Use image node_id 4 for calling a global function with example usage: create_from_collection(collection_name, source_collection_name, size, distance, on_disk_vectors, on_disk_payload) and returns: response