def METHOD_NAME():
    data = wt.Data()
    data.create_variable("v1", np.arange(0, 10)[None, :])
    data.create_variable("v2", np.arange(0, 10)[:, None])
    data.create_channel("ch", data.v1[:] * data.v2[:])
    data.transform("v2", "v1")
    data.collapse("v1", "maximum")
    data.collapse("v2", "max")
    assert data.ch_v2_max.shape == (1, 10)
    assert data.ch_v1_maximum.shape == (10, 1)
    assert data.ch_v1_maximum_v2_max.shape == (1, 1)
    assert np.allclose(
        data.ch_v2_max.points,
        np.array([0.0, 9.0, 18.0, 27.0, 36.0, 45.0, 54.0, 63.0, 72.0, 81.0]),
    )
    assert np.allclose(
        data.ch_v1_maximum.points,
        np.array([0.0, 9.0, 18.0, 27.0, 36.0, 45.0, 54.0, 63.0, 72.0, 81.0]),
    )
    assert np.allclose(data.ch_v1_maximum_v2_max.points, np.array(81))
    assert len(data.channel_names) == 4