Impossible. Trainers are NPCs, not Pokémon. The game engine has no "catch trainer" flag, and no Action Replay / GameShark / CodeBreaker code can create one.
Codes modify existing data (IVs, items, wild encounters, flags). They cannot rewrite core battle logic to treat a human as a capturable species.
Catching trainers remains a fan fantasy / rom-hack territory only.