code: def register(cls):
      """Adds KeyHandler metaclass to the class"""
      return KeyHandler(
          cls.__name__, cls.__bases__, cls.__dict__.copy()
      )
  
file_path: accelerate/src/accelerate/commands/menu/input.py
imports: from typing import List
  from .keymap import KEYMAP, get_character
label_desc: Use image node_id 3 for calling a global function with example usage: register(cls) and returns: KeyHandler