def is_valid_username(name, username, **kwargs):
    if bool(username):
        return True
    logging.debug(
        '%s username is empty', name
    )
Valid the format of username.
dataset/ETHPy150Open openstack/compass-core/compass/db/validator.py/is_valid_username