def METHOD_NAME(Model, model_args, output_shape, params, static_params):
    """Builds test for model with a given parametrization
    # Arguments:
        Model: Keras model.
        model_args: List with required model arguments for Model instantiation.
        output_shape: List with expected model output shapes.
        params: List of integers with `trainable` parameters.
        static_params: List of integers with number of `non_trainable` params.
    # Returns:
        Parametrized test function.
    """
    parametrization = []
    for args in zip(output_shape, params, static_params):
        parametrization.append(args)
    function_arguments = 'outro_shape, parameters, static_parameters'
    @pytest.mark.METHOD_NAME(function_arguments, parametrization)
    def test(outro_shape, parameters, static_parameters):
        model = Model(*model_args)
        model_params = count_params(model.trainable_weights)
        model_static_params = count_params(model.non_trainable_weights)
        assert model_params == parameters
        assert model_static_params == static_parameters
        assert model.output_shape == outro_shape
        del model
    return test