code: def setup_ui(self, dummy_component, sd_model_checkpoint_component):
      self.checkpoint_format.change(
          lambda fmt: gr.update(visible=fmt == "safetensors"),
          inputs=[self.checkpoint_format],
          outputs=[self.metadata_editor],
          show_progress=False,
      )
  
      self.read_metadata.click(
          extras.read_metadata,
          inputs=[
              self.primary_model_name,
              self.secondary_model_name,
              self.tertiary_model_name,
          ],
          outputs=[self.metadata_json],
      )
  
      self.modelmerger_merge.click(
          fn=lambda: "", inputs=[], outputs=[self.modelmerger_result]
      )
      self.modelmerger_merge.click(
          fn=call_queue.wrap_gradio_gpu_call(
              modelmerger,
              extra_outputs=lambda: [gr.update() for _ in range(4)],
          ),
          _js="modelmerger",
          inputs=[
              dummy_component,
              self.primary_model_name,
              self.secondary_model_name,
              self.tertiary_model_name,
              self.interp_method,
              self.interp_amount,
              self.save_as_half,
              self.custom_name,
              self.checkpoint_format,
              self.config_source,
              self.bake_in_vae,
              self.discard_weights,
              self.save_metadata,
              self.add_merge_recipe,
              self.copy_metadata_fields,
              self.metadata_json,
          ],
          outputs=[
              self.primary_model_name,
              self.secondary_model_name,
              self.tertiary_model_name,
              sd_model_checkpoint_component,
              self.modelmerger_result,
          ],
      )
  
      # Required as a workaround for change() event not triggering when loading values from ui-config.json
      self.interp_description.value = update_interp_description(
          self.interp_method.value
      )
  
file_path: stable-diffusion-webui/modules/ui_checkpoint_merger.py
imports: import gradio
  from modules import sd_models, sd_vae, errors, extras, call_queue
  from modules.ui_components import FormRow
  from modules.ui_common import create_refresh_button
label_desc: Use image node_id 2 for calling the UiCheckpointMerger obj's underlying member method code with example usage: obj.setup_ui(dummy_component, sd_model_checkpoint_component) without return types