<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _all_valid(links):
 """Iterates over all links, forgetting emtpy registers."""

    for k, v in links.items():
        for i in v:
            yield k, i