code: def _send_request(
      self, endpoint: str, raw_request: Dict[str, Any]
  ) -> Dict[str, Any]:
      response = requests.request(
          method="POST",
          url=f"https://api.aleph-alpha.com/{endpoint}",
          headers={
              "Content-Type": "application/json",
              "Accept": "application/json",
              "Authorization": f"Bearer {self.api_key}",
          },
          data=json.dumps(raw_request),
          # Setting the nice flag prevents intensive benchmarking runs from saturating Aleph Alpha's API queues
          params=json.dumps({"nice": True}),
      )
      result = json.loads(response.text)
      assert (
          "error" not in result
      ), f"Request failed with error: {result['error']}"
      return result
  
file_path: H2O/h2o_hf/helm/src/helm/proxy/clients/aleph_alpha_client.py
imports: import json
  import requests
  from typing import Any, Dict, List
  from aleph_alpha_client import Client
  from tokenizers import Tokenizer, Encoding
  from helm.common.cache import Cache, CacheConfig
  from helm.common.hierarchical_logger import hlog
  from helm.common.request import Request, RequestResult, Sequence, Token
  from helm.common.tokenization_request import DecodeRequest, DecodeRequestResult, TokenizationRequest, TokenizationRequestResult, TokenizationToken
  from .client import Client, wrap_request_time, truncate_sequence
label_desc: Use image node_id 3 for calling the AlephAlphaClient obj's underlying member method code with example usage: obj._send_request(endpoint, raw_request) and returns: result