<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def unit_vector(x):
 """Return a unit vector in the same direction as x."""

    y = np.array(x, dtype='float')
    return y/norm(y)