code: def check_response(response: httpx.Response, **kwargs) -> Any:
      if 200 <= response.status_code < 300:
          try:
              return response.json()
          except JSONDecodeError:
              raise WrongResponseError(
                  message="Cannot parse json data from response",
                  response=response.content,
              )
      if 300 <= response.status_code < 400:
          message = (
              f"Unexpected response {response.status_code} status. "
              "Verify your client/server connection and retry the operation"
          )
          raise WrongResponseError(
              message=message,
              response=response.content,
          )
      handle_response_error(response, **kwargs)
  
file_path: argilla/src/argilla/client/sdk/_helpers.py
imports: from json import JSONDecodeError
  from typing import Any, Dict, Optional, Type, TypeVar, Union
  import httpx
  from argilla.client.sdk.commons.errors import WrongResponseError
  from argilla.client.sdk.commons.errors_handler import handle_response_error
  from argilla.client.sdk.commons.models import ErrorMessage, HTTPValidationError, Response
label_desc: Use image node_id 3 for calling a global function with example usage: check_response(response) and returns: response