Support the `in` operator with str (#47057)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/47057
Test Plan: Imported from OSS
Reviewed By: navahgar
Differential Revision: D24863370
Pulled By: ansley
fbshipit-source-id: 5d17165b06052f0a4676537c5f6757083185a591