code: def __init__(
      self,
      default=None,
      label="",
      component=None,
      component_args=None,
      onchange=None,
      section=None,
      refresh=None,
      comment_before="",
      comment_after="",
      infotext=None,
      restrict_api=False,
      category_id=None,
  ):
      self.default = default
      self.label = label
      self.component = component
      self.component_args = component_args
      self.onchange = onchange
      self.section = section
      self.category_id = category_id
      self.refresh = refresh
      self.do_not_save = False
  
      self.comment_before = comment_before
      """HTML text that will be added after label in UI"""
  
      self.comment_after = comment_after
      """HTML text that will be added before label in UI"""
  
      self.infotext = infotext
  
      self.restrict_api = restrict_api
      """If True, the setting will not be accessible via API"""
  
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 1 to create a new OptionInfo object  with example: obj = OptionInfo(default, label, component, component_args, onchange, section, refresh, comment_before, comment_after, infotext, restrict_api, category_id)