code: def save_models(
      self, trainer, model_folder, curr_suffix, prev_suffix=None
  ):
      if self.do_save_models:
          for obj_dict in [
              getattr(trainer, x, {})
              for x in self.saveable_trainer_objects
          ]:
              c_f.save_dict_of_models(
                  obj_dict, curr_suffix, model_folder
              )
              if prev_suffix is not None:
                  c_f.delete_dict_of_models(
                      obj_dict, prev_suffix, model_folder
                  )
  
imports: import os
  import sqlite3
  import torch
  from .None import common_functions
label_desc: Use image node_id 6 for calling the HookContainer obj's underlying member method code with example usage: obj.save_models(trainer, model_folder, curr_suffix, prev_suffix) without return types