Think about this contradictory statement for a while. Can it actually be true? Or is there something else going on?
If the interviewee has nothing but sub-1yr stints on their resume, perpetually getting fired before vesting at any company, then yes, it's very possible they actually can't code and just fake it at every interview.
But everyone else... if they have spent years at tech companies writing production code then obviously they know how to code. They might be great or maybe mediocre, but guaranteed they at least know how to code.
So, if your interviewing technique is concluding something that is obviously impossible, then start by considering how to improve the interview technique.