code: def test_api_compatibility(mocked_client):
      client = singleton.active_api().http_client
      dummy_api = AbstractApi(client)
      with pytest.raises(ApiCompatibilityError):
          with api_compatibility(api=dummy_api, min_version="999.1.0"):
              handle_response_error(mocked_client.post("/api/datasets"))
  
imports: import pytest
  from argilla.client import singleton
  from argilla.client.apis import AbstractApi, api_compatibility
  from argilla.client.sdk._helpers import handle_response_error
  from argilla.client.sdk.commons.errors import ApiCompatibilityError
label_desc: Use image node_id 1 for calling a global function with example usage: test_api_compatibility(mocked_client) without return types