code: def find_checkpoint_config(state_dict, info):
      if info is None:
          return guess_model_config_from_state_dict(state_dict, "")
  
      config = find_checkpoint_config_near_filename(info)
      if config is not None:
          return config
  
      return guess_model_config_from_state_dict(
          state_dict, info.filename
      )
  
imports: import os
  import torch
  from modules import shared, paths, sd_disable_initialization, devices
label_desc: Use image node_id 3 for calling a global function with example usage: find_checkpoint_config(state_dict, info) and returns: guess_model_config_from_state_dict, guess_model_config_from_state_dict, config