Add HPU type for check_base_legacy_new (#65410)
Summary:
Fixes #{issue number}
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65410
Reviewed By: H-Huang
Differential Revision: D31143754
Pulled By: malfet
fbshipit-source-id: 32abfbae4f7c09924c7dfa16758d64a2215ec636