def METHOD_NAME(self, node, taskid):
    try:
        status = self.proxmox_api.nodes(node).tasks(taskid).status.get()
        return status['status'] == 'stopped' and status['exitstatus'] == 'OK'
    except Exception as e:
        self.module.fail_json(msg='Unable to retrieve API task ID from node %s: %s' % (node, e))