code: def assert_rw_token_success(method, url, data=None):
      """Perform the request with a read-write token and assert success"""
      requests.request(
          method=method,
          url=url,
          headers={"api-key": "my-secret"},
          json=data,
      ).raise_for_status()
  
file_path: qdrant/tests/api_key/test_rest.py
imports: import requests
  import pytest
  import os
label_desc: Use image node_id 10 for calling a global function with example usage: assert_rw_token_success(method, url, data) without return types