[py][vulkan][reland] Add is_vulkan to py api, add vulkan to device type parsing (#46655)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/46655
Test Plan: Imported from OSS
Pulled By: IvanKobzarev
Reviewed By: mrshenli
Differential Revision: D24448984
fbshipit-source-id: 5000846a06077f7a5a06dd51da422d2a42f70820