<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def check_basic_auth(user, passwd):
 """Checks user authentication using HTTP Basic Auth."""


    auth = request.authorization
    return auth and auth.username == user and auth.password == passwd