Use `HF_ENDPOINT` for custom endpoints
# What does this PR do?

To be consistent with Datasets, this PR updates the env variable checked for a custom endpoint to `HF_ENDPOINT` and deprecates the old one.

Fixes #15514