def register_finalize_hook(fn):
_FINALIZE_HOOKS.append(fn)<EOL>return fn<EOL>
Registers `fn` as a hook that will run during `gin.finalize`.

    All finalize hooks should accept the current config, and return a dictionary
    containing any additional parameter bindings that should occur in the form of
    a mapping from (scoped) configurable names to values.

    Args:
      fn: The function to register.

    Returns:
      `fn`, allowing `register_finalize_hook` to be used as a decorator.