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","."]
code: def test_6_prompt_template(self, mock_handler):
      df = pd.DataFrame.from_dict(
          {
              "question": [
                  "What is the capital of Sweden?",
                  "What is the second planet of the solar system?",
              ]
          }
      )
      self.set_handler(mock_handler, name="pg", tables={"df": df})
      with self._use_anyscale_api_key() as api_key:
          self.run_sql(
              f"""
                 create model proj.test_anyscale_prompt_template
                 predict completion
                 using
                   engine='anyscale_endpoints',
                   prompt_template='Answer this question and add "Boom!" to the end of the answer: {{{{question}}}}',
                   api_key='{api_key}';
              """
          )
      self.wait_predictor("proj", "test_anyscale_prompt_template")
  
      self.run_sql(
          """
              SELECT p.completion
              FROM proj.test_anyscale_prompt_template as p
              WHERE
              question='What is the capital of Sweden?';
          """
      )
  
      self.run_sql(
          """
              SELECT p.completion
              FROM pg.df as t
              JOIN proj.test_anyscale_prompt_template as p;
          """
      )
  
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 10 for calling the TestAnyscaleEndpoints obj's underlying member method code with example usage: obj.test_6_prompt_template(mock_handler) without return types