code: def upload_snapshot(peer_api_uri, snapshot_path):
      with open(snapshot_path, "rb") as f:
          print(f"uploading {snapshot_path} to {peer_api_uri}")
          snapshot_file = {"snapshot": f}
          r = requests.post(
              f"{peer_api_uri}/collections/{COLLECTION_NAME}/snapshots/upload",
              files=snapshot_file,
          )
          assert_http_ok(r)
          return r.json()["result"]
  
file_path: qdrant/tests/consensus_tests/test_snapshot_upload.py
imports: import pathlib
  import requests
  from .fixtures import create_collection, upsert_random_points, random_dense_vector, search, random_sparse_vector
  from .utils import *
  from .assertions import assert_http_ok
  import time
label_desc: Use image node_id 5 for calling a global function with example usage: upload_snapshot(peer_api_uri, snapshot_path) and returns: r