def METHOD_NAME(args, model, checkpoint, out_file):
    print('predicting {}...'.format(checkpoint))
    pred, meta = do_tta_predict(args, model, checkpoint, tta_num=2)
    print(pred.shape)
    y_pred_test = generate_preds(pred, (settings.ORIG_H, settings.ORIG_W), pad_mode=args.pad_mode)
    submission = create_submission(meta, y_pred_test)
    submission.to_csv(out_file, index=None, encoding='utf-8')