Adds dependencies on lazy codegen sources to invocation of generate_code (#74750)
Summary:
Isn't foolproof since it doesn't include transitive deps of these python scripts, but it's better than nothing.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/74750
Reviewed By: bdhirsh
Differential Revision: D35145749
Pulled By: wconstab
fbshipit-source-id: ccd77cf18f68cc66c790f41f111833eca4101dac
(cherry picked from commit 5ef757ffd27837eb2b3c98935d66aecb1fc5acf9)