Bob Baffert is so PISSED over his New York Racing Association ban ... he's now suing the org. and asking the judge to lift his suspension ASAP.
It's all in new court docs obtained by TMZ Sports ... in which Baffert says the NYRA has no basis to suspend him, despite what's been going down with Medina Spirit in Kentucky.
In the lawsuit, Baffert says even though Medina Spirit's primary sample came back with traces of a banned substance after the horse's Kentucky Derby win .