code: def create_collection_with_custom_sharding(
      peer_url,
      collection=COLLECTION_NAME,
      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": 4, "distance": "Dot"},
              "shard_number": shard_number,
              "replication_factor": replication_factor,
              "write_consistency_factor": write_consistency_factor,
              "sharding_method": "custom",
          },
      )
      assert_http_ok(r_batch)
  
imports: import pathlib
  from .fixtures import upsert_random_points, create_collection
  from .utils import *
label_desc: Use image node_id 1 for calling a global function with example usage: create_collection_with_custom_sharding(peer_url, collection, shard_number, replication_factor, write_consistency_factor, timeout) without return types