def validate_groupby_func(name, args, kwargs, allowed=None):
if allowed is None:<EOL><INDENT>allowed = []<EOL><DEDENT>kwargs = set(kwargs) - set(allowed)<EOL>if len(args) + len(kwargs) > <NUM_LIT:0>:<EOL><INDENT>raise UnsupportedFunctionCall((<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(func=name)))<EOL><DEDENT>
'args' and 'kwargs' should be empty, except for allowed
kwargs because all of
their necessary parameters are explicitly listed in
the function signature