N.Y. Comp. Codes R. & Regs. tit. 9, § 4120.17
(4) If a selected horse is not involved in activities related to racing in New York, then the trainer or owner may represent this to the commission and the commission will not sample the horse. If the trainer makes such a representation and the managing owner has previously provided the commission with a means for the commission to give immediate telephonic notification to the managing owner that the trainer made such a representation, then the commission shall transmit such notification to the managing owner and the eligibility of the horse shall be preserved if the managing owner is able to make the horse available for immediate sampling.
(b) Sampling procedure.
(7) A commission judge or executive official may require any horse of a licensed trainer or owner to be brought promptly to a racetrack under the jurisdiction of the commission for out-of-competition testing when: The trainer is responsible to have the horse or horses available at the designated time and location.
(9) A licensed racetrack at which a horse may be located shall cooperate fully with a person who is authorized to take samples. The person who collects samples for the commission on track may require that the collection be done at the test barn.
(c) Prohibited substances.
(1) The presence in or administration to a horse of the following doping agents or drugs, in the absence of extraordinary mitigating circumstances that excuse the owner and trainer from their failure to fulfill their duties and responsibilities, is prohibited at any time:
(3) It shall be an affirmative defense to a violation of this section that the person used the prohibited substance only in a time, place and manner specifically permitted in writing by the commission before the administration of such substance, for a recognized therapeutic use, and subject to such appropriate limitations as the commission shall place on the return of the horse to running races.
(d) Penalties.
(a) Out-of-competition collection of samples.