code: def test_invalid_prompt_template(self):
      # create project
      self.run_sql("create database proj")
      self.run_sql(
          f"""
             create model proj.test_invalid_prompt_template_format
             predict completion
             using
               engine='rag',
               llm_type="openai",
               prompt_template="not valid format",
               openai_api_key='{OPENAI_API_KEY}';
          """
      )
      with pytest.raises(Exception):
          self.wait_predictor(
              "proj", "test_invalid_prompt_template_format"
          )
  
file_path: mindsdb/tests/unit/ml_handlers/test_rag.py
imports: import os
  import time
  import pandas
  import pytest
  from mindsdb_sql import parse_sql
  from tests.unit.executor_test_base import BaseExecutorTest
label_desc: Use image node_id 9 for calling the TestRAG obj's underlying member method code with example usage: obj.test_invalid_prompt_template() without return types