def METHOD_NAME(self, task_id, request=False):
    assert task_id == self.TAG_TASK_ID
    # For extra code coverage, imagine Koji denies the task ever
    # existed.
    if self.tag_task_state is None:
        return None
    return {'state': koji.TASK_STATES[self.tag_task_state]}