from typing import List


def _one_hot(label_idx: int, total_num: int) -> List:
    """Create one-hot vector of label.

    Args:
        label_idx (int): index of label
        total_num (int): total number of indices in label

    Returns:
        List: one-hot vector
    """
    result = [0] * total_num
    result[label_idx] = 1

    return result