<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _join_names(names):
 """Join the names of a multi-level index with an underscore."""


    levels = (str(name) for name in names if name != '')
    return '_'.join(levels)