def METHOD_NAME(get_fig_2d, get_fig_3d):
    fig, ax = get_fig_2d
    plot_labels(ax)
    assert ax.get_xlabel() == 'X'
    assert ax.get_ylabel() == 'Y'
    fig, ax = get_fig_2d
    plot_labels(ax, xlabel='T', ylabel='R')
    assert ax.get_xlabel() == 'T'
    assert ax.get_ylabel() == 'R'
    fig0, ax0 = get_fig_3d
    plot_labels(ax0)
    assert ax0.get_zlabel() == 'Z'
    fig0, ax0 = get_fig_3d
    plot_labels(ax0, zlabel='T')
    assert ax0.get_zlabel() == 'T'