code: def format_openbuddy(
      messages: List[llama_types.ChatCompletionRequestMessage],
      **kwargs: Any,
  ) -> ChatFormatterResponse:
      _system_message = """Consider a conversation between User (a human) and Assistant (named Buddy).
  Buddy is an INTP-T, a friendly, intelligent and multilingual AI assistant, by OpenBuddy team. GitHub: https://github.com/OpenBuddy/OpenBuddy
  Buddy cannot access the Internet.
  Buddy can fluently speak the user's language (e.g. English, Chinese).
  Buddy can generate poems, stories, code, essays, songs, parodies, and more.
  Buddy possesses vast knowledge about the world, history, and culture.
  Buddy's responses are always safe, creative, high-quality, human-like, and interesting.
  Buddy strictly refuses to discuss political, NSFW, or other unsafe topics.
  
  User: Hi.
  Assistant: Hi, I'm Buddy, your AI assistant. How can I help you today?"""
      _roles = dict(user="User", assistant="Assistant")
      _sep = "\n"
      system_message = _system_message
      _messages = _map_roles(messages, _roles)
      _messages.append((_roles["assistant"], None))
      _prompt = _format_add_colon_single(
          system_message, _messages, _sep
      )
      return ChatFormatterResponse(prompt=_prompt)
  
imports: from __future__ import annotations
  import os
  import json
  import ctypes
  import dataclasses
  from typing import Any, Dict, Iterator, List, Optional, Tuple, Union, Protocol
  import llama_cpp.llama
  import llama_cpp.llama_types
  import llama_cpp.llama_grammar
  from ._utils import suppress_stdout_stderr
label_desc: Use image node_id 25 for calling a global function with example usage: format_openbuddy(messages) and returns: ChatFormatterResponse