code: def on_extra_noise(callback):
      """register a function to be called before adding extra noise in img2img or hires fix;
      The callback is called with one argument:
          - params: ExtraNoiseParams - contains noise determined by seed and latent representation of image
      """
      add_callback(callback_map["callbacks_extra_noise"], 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 34 for calling a global function with example usage: on_extra_noise(callback) without return types