"""
Call HF API to sign in a user and get a token if credentials are valid.
<Tip>
Warning: Deprecated, will be removed in v0.7. Please use
[`HfApi.set_access_token`] instead.
</Tip>
Args:
username (`str`):
The username of the account with which to login.
password (`str`):
The password of the account with which to login.
Returns:
`str`: token if credentials are valid
Raises:
[`HTTPError`](https://2.python-requests.org/en/master/api/#requests.HTTPError) if credentials are invalid
"""
Both
Raisesand `Yields directives are currently not shown in the documentation:Is shown as
