If you're writing this as a pastiche - an original work which closely resembles some specific author's style - something that "they could have written", you're clean: style is not copyrightable. Of course this must be entirely original work, which may use similar construction - similar metaphors, same meter, the same stylistic tools but entirely original content, you're fine - it's a well known technique used either humorously or just to show skill, as an exercise, or even to convey a specific message by emulating given author commonly associated with something you want to convey. You don't really have to credit anyone - guessing the name of the author you're emulating is often an exercise to your readers - but don't deny it's a pastiche.
If you're creating a parody - your work is a humorous variation of the original - then, at least according to US law, it's fair use - and extremely common.
If you're merely copying given construction though, using its ideas to write your own, you're moving very close to plagiarism. Of course you can create a clearly derivative work, a remix - but in this case you must obtain copyright holder's permission/license to release it, and obviously crediting the original will be required.