def METHOD_NAME():
    valid_input = np.arange(start=0.0, stop=40.0, step=1.0).astype(np.float32)
    valid_input = np.reshape(valid_input, (1, 4, 10, 1))
    output = np.array([[14.0, 19.0], [34.0, 39.0]]).astype(np.float32)
    output = np.reshape(output, (1, 2, 2, 1))
    test_utils.layer_test(
        AdaptiveMaxPooling2D,
        kwargs={"output_size": (2, 2), "data_format": "channels_last"},
        input_data=valid_input,
        expected_output=output,
    )
    valid_input = np.arange(start=0.0, stop=40.0, step=1.0).astype(np.float32)
    valid_input = np.reshape(valid_input, (1, 1, 4, 10))
    output = np.array([[14.0, 19.0], [34.0, 39.0]]).astype(np.float32)
    output = np.reshape(output, (1, 1, 2, 2))
    test_utils.layer_test(
        AdaptiveMaxPooling2D,
        kwargs={"output_size": (2, 2), "data_format": "channels_first"},
        input_data=valid_input,
        expected_output=output,
    )