Revert D28926135: [pytorch][PR] Refactor Foreach Tests: Unary Functions
Test Plan: revert-hammer
Differential Revision:
D28926135 (https://github.com/pytorch/pytorch/commit/0897df18a314f7a74dce9fcd065d6d7e4cab47d7)
Original commit changeset: 4eb21dcebbff
fbshipit-source-id: c15f51661641f455ae265cdf048051a3c01198f9