[testing] support op with args/kwargs in test_unary_ufunc (#52194)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/51242
Pull Request resolved: https://github.com/pytorch/pytorch/pull/52194
Reviewed By: ngimel
Differential Revision: D27385139
Pulled By: mruberry
fbshipit-source-id: 63118dee33a138ef13810465d2d2d9fa194dfb28