code: def create_collection(
      peer_url,
      collection="test_collection",
      shard_number=1,
      replication_factor=1,
      write_consistency_factor=1,
      timeout=10,
  ):
      # Create collection in peer_url
      r_batch = requests.put(
          f"{peer_url}/collections/{collection}?timeout={timeout}",
          json={
              "vectors": {"size": DENSE_VECTOR_SIZE, "distance": "Dot"},
              "sparse_vectors": {"sparse-text": {}},
              "shard_number": shard_number,
              "replication_factor": replication_factor,
              "write_consistency_factor": write_consistency_factor,
          },
      )
      assert_http_ok(r_batch)
  
file_path: qdrant/tests/consensus_tests/fixtures.py
imports: import random
  from typing import List
  import requests
  from consensus_tests.assertions import assert_http_ok
label_desc: Use image node_id 4 for calling a global function with example usage: create_collection(peer_url, collection, shard_number, replication_factor, write_consistency_factor, timeout) without return types