def METHOD_NAME(self):
    if self is self.PENDING:
        return pulp_const.TASK_STATES.WAITING
    elif self is self.RUNNING:
        return pulp_const.TASK_STATES.RUNNING
    elif self is self.FAILED:
        return pulp_const.TASK_STATES.FAILED
    elif self is self.SUCCESS:
        return pulp_const.TASK_STATES.COMPLETED