If your vehicle is outside New York State, you can apply for an inspection extension sticker. This gives you until 10 days after the vehicle returns to New York State to have it reinspected. This would be the case if you were traveling with your vehicle or if you parked it out of state while you were traveling (perhaps at Newark airport, for example).
If your car is in New York State, however, it appears that you have to find another solution. You can presumably have the car towed to an inspection station, or you can risk the fine, which seems lower than the likely cost of towing ($25 to $50 if the registration is less than 60 days expired, $50 to $100 otherwise). Plus of course there's the likelihood that you won't have to pay the fine. You could also arrange to have someone take the car for inspection in your absence.