code: def keras_callback_to_dict(callback):
      """Convert a `Keras` callback instance to a dict that identifies it, along with the parameters
      used to create it
  
      Parameters
      ----------
      callback: Child instance of `keras.callbacks.Callback`
          A Keras callback for which a dict describing it will be created
  
      Returns
      -------
      callback_dict: Dict
          A dict identifying and describing `callback`"""
      callback_dict = dict(
          class_name=callback.__class__.__name__,
          **parameters_by_signature(
              callback,
              lambda arg_name, arg_val: arg_name not in ["verbose"],
          ),
      )
      return callback_dict
  
file_path: hyperparameter_hunter/hyperparameter_hunter/compat/keras_helper.py
imports: from hyperparameter_hunter.settings import G
  from hyperparameter_hunter.utils.general_utils import to_snake_case, subdict
  from inspect import signature, _empty
  from types import MethodType
  from typing import List, Tuple
label_desc: Use image node_id 2 for calling a global function with example usage: keras_callback_to_dict(callback) and returns: callback_dict