<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def assert_valid_name(name: str) -> str: """Uphold the spec rules about naming."""

    error = is_valid_name_error(name)
    if error:
        raise error
    return name