<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _to_diagonally_dominant_weighted(mat):
 """Make matrix weighted diagonally dominant using the Laplacian."""

    mat += np.diag(np.sum(np.abs(mat), axis=1) + 0.01)
    return mat