<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def invert(m):
 """ Generate the inverse of a 3x3 matrix. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/invert_c.html :param m: Matrix to be inverted. :type m: 3x3-Element Array of floats :return: Inverted matrix (m1)^-1 :rtype: 3x3-Element Array of floats """

    m = stypes.toDoubleMatrix(m)
    mout = stypes.emptyDoubleMatrix()
    libspice.invert_c(m, mout)
    return stypes.cMatrixToNumpy(mout)