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


        fn = self.function_table.getDigitalActionData
        pActionData = InputDigitalActionData_t()
        result = fn(action, byref(pActionData), unActionDataSize, ulRestrictToDevice)
        return result, pActionData