def METHOD_NAME(self):
    if not os.path.exists(self.models_dir):
        os.makedirs(self.models_dir)
    for name, model in list(self.models.items()):
        model_path = os.path.join(self.models_dir, name + '.cbm')
        config_path = os.path.join(self.models_dir, name + '_model.xml')
        params = {
            'name': name,
            'path': model_path
        }
        config = CATBOOST_MODEL_CONFIG.format(**params)
        with open(config_path, 'w') as f:
            f.write(config)
        model.save_model(model_path)