Upon a motion in an action or proceeding, costs may be awarded, not to exceed twenty-five dollars, either absolutely or to abide the event of the action, to any party, in the discretion of the court.