This section applies if any of the following occurs in relation to a person in respect of whom a Part 1 warrant is issued—
In a case falling within subsection (1)(a), the appropriate judge may make such order as he considers just and reasonable with regard to the costs to be paid by the person.
In a case falling within subsection (1)(aa), (b), (c) or (d), the court by which the application or appeal is dismissed may make such order as it considers just and reasonable with regard to the costs to be paid by the person.
An order for costs under this section—