code: def create_collection_from(
      peer_url,
      from_collection_name,
      collection="test_collection",
      shard_number=1,
      replication_factor=1,
      timeout=10,
  ):
      # Create collection in first peer
      r_batch = requests.put(
          f"{peer_url}/collections/{collection}?timeout={timeout}",
          json={
              "vectors": {"size": 4, "distance": "Dot"},
              "sparse_vectors": {"sparse-text": {}},
              "shard_number": shard_number,
              "replication_factor": replication_factor,
              "init_from": {"collection": from_collection_name},
          },
      )
      assert_http_ok(r_batch)
  
imports: import pathlib
  from .fixtures import upsert_random_points, create_collection
  from .utils import *
  from .assertions import assert_http_ok
label_desc: Use image node_id 1 for calling a global function with example usage: create_collection_from(peer_url, from_collection_name, collection, shard_number, replication_factor, timeout) without return types