import torch


def make_one_hot(position: int, length: int) -> torch.Tensor:
    """
    Makes a 1D one hot vector of length l with a one at index position, rest all zeroes

    Arguments:
        position (int): index at which the one hot vector would have one
        l (int): length of the one hot vector

    Returns:
        torch.Tensor

    Usage:
        make_one_hot(position=3, l=5) -> torch.Tensor([0, 0, 0, 1, 0])
    """
    one_hot_vec = torch.zeros(length)
    one_hot_vec[position] = 1

    return one_hot_vec