parameters: (name, args, kwargs, allowed=None)
docstring: 'args' and 'kwargs' should be empty, except for allowed kwargs because all
      of their necessary parameters are explicitly listed in the function
      signature
docstring_summary: 'args' and 'kwargs' should be empty, except for allowed kwargs because all
      of their necessary parameters are explicitly listed in the function
      signature
docstring_tokens: args and kwargs should be empty except for allowed kwargs because all of their necessary parameters are explicitly listed in the function signature
function: def validate_groupby_func(name, args, kwargs, allowed=None) -> None:
      """
      'args' and 'kwargs' should be empty, except for allowed kwargs because all
      of their necessary parameters are explicitly listed in the function
      signature
      """
      if allowed is None:
          allowed = []
  
      kwargs = set(kwargs) - set(allowed)
  
      if len(args) + len(kwargs) > 0:
          raise UnsupportedFunctionCall(
              "numpy operations are not valid with groupby. "
              f"Use .groupby(...).{name}() instead"
          )
function_tokens: def validate_groupby_func ( name , args , kwargs , allowed = None ) -> None : if allowed is None : allowed = [ ] kwargs = set ( kwargs ) - set ( allowed ) if len ( args ) + len ( kwargs ) > 0 : raise UnsupportedFunctionCall ( "numpy operations are not valid with groupby. " f"Use .groupby(...).{name}() instead" )