code: def onchange(self, key, func, call=True):
      item = self.data_labels.get(key)
      item.onchange = func
  
      if call:
          func()
  
imports: import json
  import sys
  from dataclasses import dataclass
  import gradio
  from modules import errors
  from modules.shared_cmd_options import cmd_opts
label_desc: Use image node_id 9 for calling the Options obj's underlying member method code with example usage: obj.onchange(key, func, call) without return types