(self, a)
return IntegersModuloPrimeElement(invert(a.val, self.mod))
:param a: IntegersModuloPrimeElement
        :return: IntegersModuloPrimeElement
def invert(self, a):
        """

        :param a: IntegersModuloPrimeElement
        :return: IntegersModuloPrimeElement
        """
        if type(a) != IntegersModuloPrimeElement:
            raise TypeError("Invert only supports IntegersModuloPrimeElement objects")
        return IntegersModuloPrimeElement(invert(a.val, self.mod))
def invert ( self , a ) : if type ( a ) != IntegersModuloPrimeElement : raise TypeError ( "Invert only supports IntegersModuloPrimeElement objects" ) return IntegersModuloPrimeElement ( invert ( a . val , self . mod ) )