code: def register_chat_completion_handler(name: str):
      def decorator(f: LlamaChatCompletionHandler):
          CHAT_HANDLERS[name] = f
          return f
  
      return decorator
  
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 2 for calling a global function with example usage: register_chat_completion_handler(name) and returns: decorator, f