def METHOD_NAME(request):
    model_type = request.param['model_type']
    keepdims = request.param['keepdims']
    model = Sequential()
    if model_type == 'avg':
        model.add(GlobalAveragePooling1D(input_shape=(in_shape, in_filt), keepdims=keepdims))
    elif model_type == 'max':
        model.add(GlobalMaxPooling1D(input_shape=(in_shape, in_filt), keepdims=keepdims))
    model.compile()
    return model, model_type, keepdims