code: def __init__(self, chat_format: str):
      self.chat_format = chat_format
  
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 1 to create a new BasicChatHandler object  with example: obj = BasicChatHandler(chat_format)