code: def mistral_instruct_pt(messages):
      prompt = custom_prompt(
          initial_prompt_value="<s>",
          role_dict={
              "system": {
                  "pre_message": "[INST]",
                  "post_message": "[/INST]",
              },
              "user": {
                  "pre_message": "[INST]",
                  "post_message": "[/INST]",
              },
              "assistant": {
                  "pre_message": "[INST]",
                  "post_message": "[/INST]",
              },
          },
          final_prompt_value="</s>",
          messages=messages,
      )
      return prompt
  
imports: from enum import Enum
  import requests, traceback
  import json
  from jinja2 import Template, exceptions, Environment, meta
  from typing import Optional, Any
label_desc: Use image node_id 5 for calling a global function with example usage: mistral_instruct_pt(messages) and returns: prompt