<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def vhatg(v1, ndim):
 """ Find the unit vector along a double precision vector of arbitrary dimension. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/vhatg_c.html :param v1: Vector to be normalized. :type v1: list[ndim] :param ndim: Dimension of v1 (and also vout). :type ndim: int :return: Unit vector v / abs(v). :rtype: list[ndim] """

    v1 = stypes.toDoubleVector(v1)
    vout = stypes.emptyDoubleVector(ndim)
    ndim = ctypes.c_int(ndim)
    libspice.vhatg_c(v1, ndim, vout)
    return stypes.cVectorToPython(vout)