code: def get_aquila_prompt(
      messages, model_base_name="AquilaChat2-34B-16K", with_sys=True
  ):
      from models.predict_aquila import get_conv_template
  
      template_map = {
          "AquilaChat2-7B": "aquila-v1",
          "AquilaChat2-34B": "aquila-legacy",
          "AquilaChat2-7B-16K": "aquila",
          "AquilaChat2-34B-16K": "aquila",
      }
      convo_template = template_map.get(model_base_name, "aquila-chat")
      conv = get_conv_template(convo_template)
      if not with_sys:
          conv.system_message = ""
      for message in messages:
          # roles=("Human", "Assistant", "System"),
          if message["role"] == "user":
              conv.append_message(conv.roles[0], message["content"])
          elif message["role"] == "assistant":
              conv.append_message(conv.roles[1], message["content"])
          elif message["role"] == "system":
              conv.append_message(conv.roles[2], message["content"])
      # assume end with asking assostiant
      conv.append_message(conv.roles[1], None)
      return conv.get_prompt()
  
file_path: h2ogpt/tests/test_prompter.py
imports: import time
  import pytest
  from tests.utils import wrap_test_forked
  from src.enums import source_prefix, source_postfix
  from src.prompter import generate_prompt
label_desc: Use image node_id 5 for calling a global function with example usage: get_aquila_prompt(messages, model_base_name, with_sys) and returns: conv