Added API tests to ReductionOpInfo and ported amax/amin/nansum tests (#62899)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/62899
Test Plan: Imported from OSS
Reviewed By: mruberry
Differential Revision: D30408816
Pulled By: heitorschueroff
fbshipit-source-id: 6cb0aa7fa7edba93549ef873baa2fb8a003bd91d