Remove dependency on six from dist_autograd_test.py
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/27369
Test Plan: Imported from OSS
Differential Revision: D17763104
Pulled By: mrshenli
fbshipit-source-id: dd146809686e7720f2b77012eebb6aed72851556