N.Y. Criminal Procedure Law § 390.20
2. Requirement for misdemeanors. Where a person is convicted of a misdemeanor a pre-sentence report is not required, but the court may not pronounce any of the following sentences unless it has ordered a pre-sentence investigation of the defendant and has received a written report thereof:
4. Waiver. (a) Notwithstanding the provisions of subdivision one or two of this section, a pre-sentence investigation of the defendant and a written report thereon may be waived by the mutual consent of the parties and with consent of the judge, stated on the record or in writing, whenever: