For instance, Peter Sagal, the Cuban revolution playwright, is credited as a writer on the Dirty Dancing sequel, despite saying there’s “not a single line of dialogue in that movie” that he wrote.
Article source: https://www.huffingtonpost.co.uk/entry/allen-smithee-explained-movie-credit_uk_6a3bd319e4b058c5d1c6b6b8