<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _parse_total_magnetization(line, lines):
 """Parse the total magnetization, which is somewhat hidden"""

    toks = line.split()
    res = {"number of electrons": float(toks[3])}
    if len(toks) > 5:
        res["total magnetization"] = float(toks[5])
    return res