def METHOD_NAME(self, taskid):
    if taskid not in self.taskmap:
        raise ValueError("Task %d not in pending list" % taskid)
    if self.taskmap[taskid].ready():
        result, traceback, hostname = self.taskmap[taskid].get()
        result_out = dict(result=None, traceback=None)
        result_out["result"] = result
        result_out["traceback"] = traceback
        result_out["hostname"] = hostname
        return result_out
    else:
        return None