add simple inheritance support to AST
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/23109
Test Plan: Imported from OSS
Differential Revision: D16441914
Pulled By: suo
fbshipit-source-id: 18a57762d376759b98c18bc160eacbcc99f78ee9