<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_ssh_keys(sshdir):
 """Get SSH keys"""

    keys = Queue()
    for root, _, files in os.walk(os.path.abspath(sshdir)):
        if not files:
            continue
        for filename in files:
            fullname = os.path.join(root, filename)
            if (os.path.isfile(fullname) and fullname.endswith('_rsa') or
                    fullname.endswith('_dsa')):
                keys.put(fullname)
    return keys