code: def assert_http_response(resp, expected_status, method, url):
      assert expected_status == resp.status_code, (
          f"`{method} {url}` "
          f"returned an unexpected response (expected {expected_status}, received {resp.status_code}): "
          f"{resp.json()}"
      )
  
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 10 for calling a global function with example usage: assert_http_response(resp, expected_status, method, url) without return types