def METHOD_NAME(self, expected_args, args):
    if not self.vararg_name and len(args) > len(expected_args):
        unexpected_args = args[len(expected_args) :]
        raise SignatureError(
            "{} got unexpected argument(s): {}".format(self.name, unexpected_args)
        )