from typing import Tuple


def to_one_hot(label: int, one_hot_size: int) -> Tuple:
    """
    Encodes a label value into a one-hot vector.

    Args:
        `label`: the label value
        `one_hot_size`: the length of the resulting one-hot vector.
                        this is equivalent to the total number of labels.
    Returns:
        `one_hot_label` : a list object representing a one-hot vector.
    """
    one_hot_label = [0] * one_hot_size
    one_hot_label[label] = 1
    return tuple(one_hot_label)