<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def getBoolTrackedDeviceProperty(self, unDeviceIndex, prop):
 """Returns a bool property. If the device index is not valid or the property is not a bool type this function will return false."""


        fn = self.function_table.getBoolTrackedDeviceProperty
        pError = ETrackedPropertyError()
        result = fn(unDeviceIndex, prop, byref(pError))
        return result, pError