code: def collection_snapshot_and_collection_delete(
      peer_url, check_failure=True
  ):
      if check_failure:
          # Create collection snapshot.
          # Expect that snapshot creation fails unless it was not recovered from another replica
          resp = requests.post(f"{base_url(peer_url)}/snapshots")
          assert_http_response(resp, 500, "POST", "snapshots")
  
      # Delete collection. We expect this request to succeed in all cluster configurations.
      resp = requests.delete(base_url(peer_url))
      assert_http_response(
          resp, 200, "DELETE", f"collections/{COLLECTION_NAME}"
      )
  
file_path: qdrant/tests/consensus_tests/test_dummy_shard.py
imports: import pathlib
  import shutil
  from requests import get, post, put, delete
  from .fixtures import create_collection, upsert_random_points, random_dense_vector, search
  from .utils import *
  from .assertions import assert_http_ok
label_desc: Use image node_id 7 for calling a global function with example usage: collection_snapshot_and_collection_delete(peer_url, check_failure) without return types