<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getAnalogActionData(self, action, unActionDataSize, ulRestrictToDevice):
 """ Reads the state of an analog action given its handle. This will return VRInputError_WrongType if the type of action is something other than analog """


        fn = self.function_table.getAnalogActionData
        pActionData = InputAnalogActionData_t()
        result = fn(action, byref(pActionData), unActionDataSize, ulRestrictToDevice)
        return result, pActionData