code: def upsert_random_points(
      peer_url,
      num,
      collection_name="test_collection",
      fail_on_error=True,
      offset=0,
      wait="true",
      ordering="weak",
  ):
      # Create points in first peer's collection
      r_batch = requests.put(
          f"{peer_url}/collections/{collection_name}/points?wait={wait}&ordering={ordering}",
          json={
              "points": [
                  {
                      "id": i + offset,
                      "vector": {
                          "": random_dense_vector(),
                          "sparse-text": random_sparse_vector(),
                      },
                      "payload": {"city": random.choice(CITIES)},
                  }
                  for i in range(num)
              ]
          },
      )
      if fail_on_error:
          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 3 for calling a global function with example usage: upsert_random_points(peer_url, num, collection_name, fail_on_error, offset, wait, ordering) without return types