code: def on_cfg_denoised(callback):
      """register a function to be called in the kdiffussion cfg_denoiser method after building the inner model inputs.
      The callback is called with one argument:
          - params: CFGDenoisedParams - parameters to be passed to the inner model and sampling state details.
      """
      add_callback(callback_map["callbacks_cfg_denoised"], callback)
  
imports: import inspect
  import os
  from collections import namedtuple
  from typing import Optional, Any
  from fastapi import FastAPI
  from gradio import Blocks
  from modules import errors, timer
label_desc: Use image node_id 36 for calling a global function with example usage: on_cfg_denoised(callback) without return types