def METHOD_NAME(self, last, epoch, final_epoch, best_fitness, fi):
    # Callback runs on model save event
    if self.wandb:
        if ((epoch + 1) % self.opt.save_period == 0 and not final_epoch) and self.opt.save_period != -1:
            self.wandb.log_model(last.parent, self.opt, epoch, fi, best_model=best_fitness == fi)