<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_local_user(username):
 """Get the local username"""

    try:
        _ = getpwnam(username)
        luser = username
    except KeyError:
        luser = getuser()
    return luser