refactor all for in range/tensor tests to be together with other for loop tests (#21950)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/21950
ghimport-source-id: b2491313bc2e0fcc10f77167c261cbae4d884ebb
Test Plan: Imported from OSS
Differential Revision: D15948546
Pulled By: wanchaol
fbshipit-source-id: 34dde28902ae5b8affbf6e4deaaffdb1d8ddd6ec