The fix
I'm using [library] version [X]. Before writing any code, tell me the current, non-deprecated API for [task] in that version. If you're not confident your training is current, say so and ask me to paste the relevant docs. Don't use any API that's deprecated or removed in [X].
Learn it properly: Recipe 03, Stack β