code: def restore(file, feature_transformers=None, model=None, config=None):
      model_path = os.path.join(file, "weights_tune.h5")
      config_path = os.path.join(file, "config.json")
      local_config = load_config(config_path)
      if config is not None:
          all_config = config.copy()
          all_config.update(local_config)
      else:
          all_config = local_config
      if model:
          model.restore(model_path, **all_config)
      if feature_transformers:
          feature_transformers.restore(**all_config)
      return all_config
  
file_path: analytics-zoo/pyzoo/zoo/chronos/autots/deprecated/feature/utils.py
imports: import json
  import os
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: restore(file, feature_transformers, model, config) and returns: all_config