Fix all occurrences of C416. (#33429)
Summary:
C416: Unnecessary (list/set) comprehension - rewrite using list/set().
See https://pypi.org/project/flake8-comprehensions/
Pull Request resolved: https://github.com/pytorch/pytorch/pull/33429
Differential Revision: D19972858
Pulled By: ezyang
fbshipit-source-id: faac042a94c59d737bd5ae983121a0a029346e23