<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_uvec(vec):
 """ Gets a unit vector parallel to input vector"""

    l = np.linalg.norm(vec)
    if l < 1e-8:
        return vec
    return vec / l