def METHOD_NAME(*args, **kwargs):
    if len(args) > max_positional_args:
        plural_s = ""
        if max_positional_args != 1:
            plural_s = "s"
        message = (
            "{function}() takes at most {args_max} positional "
            "argument{plural} ({args_given} given)".format(
                function=wrapped.__name__,
                args_max=max_positional_args,
                args_given=len(args),
                plural=plural_s,
            )
        )
        if positional_parameters_enforcement == POSITIONAL_EXCEPTION:
            raise TypeError(message)
        elif positional_parameters_enforcement == POSITIONAL_WARNING:
            logger.warning(message)
    return wrapped(*args, **kwargs)