def tupleRemoveByIndex(initTuple, indexList):
    """
    Remove the elements of given indices from a tuple.

    Parameters
    ----------
    initTuple : tuple of any
        The given tuple from which we will remove elements.
    indexList : list of ints
        The indices of elements that we want to remove.

    Returns 
    -------
    tuple of any
        The tuple after removing elements from initTuple
    """
    initList = list(initTuple)
    indexSet = set(indexList)
    resList = []
    for i in range(len(initList)):
        if not (i in indexSet):
            resList.append(initList[i])
    return tuple(resList)