class_docstr: Test class for Anyscale Endpoints Integration Testing.
  It follows tests for OpenAI's handler closely as the Anyscale handler inherits from it.
  Notably, no assertions are done on the as the 7B model is not very good at this task.
class_docstr_tok: ["Test","class","for","Anyscale","Endpoints","Integration","Testing",".","It","follows","tests","for","OpenAI","'s","handler","closely","as","the","Anyscale","handler","inherits","from","it",".","Notably",",","no","assertions","are","done","on","the","as","the","7B","model","is","not","very","good","at","this","task","."]
docstr: Temporarily updates the API key env var for OpenAI with the Anyscale one. 
docstr_tok: ["Temporarily","updates","the","API","key","env","var","for","OpenAI","with","the","Anyscale","one","."]
code: def _use_anyscale_api_key(openai_key="OPENAI_API_KEY"):
      """Temporarily updates the API key env var for OpenAI with the Anyscale one."""
      old_key = os.environ.get(openai_key)
      os.environ[openai_key] = os.environ.get(
          "ANYSCALE_ENDPOINTS_API_KEY"
      )
      try:
          yield os.environ[openai_key]  # enter
      finally:
          os.environ[openai_key] = old_key
  
imports: import os
  import time
  import pytest
  import contextlib
  import pandas
  from unittest.mock import patch
  from mindsdb_sql import parse_sql
  from mindsdb.integrations.handlers.anyscale_endpoints_handler.anyscale_endpoints_handler import AnyscaleEndpointsHandler
  from ..executor_test_base import BaseExecutorTest
label_desc: Use image node_id 1 for calling the TestAnyscaleEndpoints obj's underlying member method code with example usage: obj._use_anyscale_api_key(openai_key) without return types