code: def create_config(ckpt_result, config_source, a, b, c):
      def config(x):
          res = (
              sd_models_config.find_checkpoint_config_near_filename(x)
              if x
              else None
          )
          return res if res != shared.sd_default_config else None
  
      if config_source == 0:
          cfg = config(a) or config(b) or config(c)
      elif config_source == 1:
          cfg = config(b)
      elif config_source == 2:
          cfg = config(c)
      else:
          cfg = None
  
      if cfg is None:
          return
  
      filename, _ = os.path.splitext(ckpt_result)
      checkpoint_filename = filename + ".yaml"
  
      print("Copying config:")
      print("   from:", cfg)
      print("     to:", checkpoint_filename)
      shutil.copyfile(cfg, checkpoint_filename)
  
file_path: stable-diffusion-webui/modules/extras.py
imports: import os
  import re
  import shutil
  import json
  import torch
  import tqdm
  from modules import shared, images, sd_models, sd_vae, sd_models_config, errors
  from modules.ui_common import plaintext_to_html
  import gradio
  import safetensors.torch
label_desc: Use image node_id 2 for calling a global function with example usage: create_config(ckpt_result, config_source, a, b, c) and returns: unknown