<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def merge_dataframes(*dfs):
    '''A helper function for merging two dataframes that have the same indices, duplicate columns are removed

        :param dfs: a list of dataframes to be merged (note: they must have the same indices)
        :type dfs: list[pandas.DataFrame]
        :returns: pandas.DataFrame -- a merged dataframe
    '''
    merged_dataframe = pd.concat(dfs, axis=1, join_axes=[dfs[0].index])
    return merged_dataframe.transpose().drop_duplicates().transpose()