In an action in which the claim for relief, by assignment after the commencement of the action or in any other manner, becomes the property of a person not a party to the action, such person is liable for the costs in the same manner as if the person were a party.
N.D.C.C. § 28-26-24