def filter_same_tokens(tokens):
    """
    Function for filtering repetitions in tokens.

    :param tokens: list with str
        List of tokens for filtering.

    :return:
        Filtered list of tokens without repetitions.
    """
    if not isinstance(tokens, list):
        raise TypeError

    for token in tokens:
        if not isinstance(token, str):
            raise TypeError

    tmp_set = set(tokens)

    return [token for token in tmp_set]