code: def falcon_chat_pt(messages):
      prompt = ""
      for message in messages:
          if message["role"] == "system":
              prompt += "System: " + message["content"]
          elif message["role"] == "assistant":
              prompt += "Falcon: " + message["content"]
          elif message["role"] == "user":
              prompt += "User: " + message["content"]
  
      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 7 for calling a global function with example usage: falcon_chat_pt(messages) and returns: prompt