def _getCompartmentPosition(df, id):
    """
    Get the position of a compartment with its certain compartment id.

    Args: 
        df: tuple-(df_CompartmentData, df_NodeData, df_ReactionData, df_ArbitraryTextData, df_ArbitraryShapeData).

        id: str-the id of the compartment.

    Returns:
        position_list: list of position.

        position: list-1*2 matrix-top left-hand corner of the compartment [position_x, position_y].
    """

    idx_list = df[0].index[df[0]["id"] == id].tolist()
    position_list =[] 
    for i in range(len(idx_list)):
        position_list.append(df[0].iloc[idx_list[i]]["position"])

    return position_list