def accept_arguments(method, number_of_arguments=<NUM_LIT:1>):
if '<STR_LIT>' in method.__class__.__name__:<EOL><INDENT>number_of_arguments += <NUM_LIT:1><EOL>func = getattr(method, '<STR_LIT>', getattr(method, '<STR_LIT>'))<EOL>func_defaults = getattr(func, '<STR_LIT>', getattr(func, '<STR_LIT>'))<EOL>number_of_defaults = func_defaults and len(func_defaults) or <NUM_LIT:0><EOL><DEDENT>elif method.__class__.__name__ == '<STR_LIT>':<EOL><INDENT>func_defaults = getattr(method, '<STR_LIT>', getattr(method, '<STR_LIT>'))<EOL>number_of_defaults = func_defaults and len(func_defaults) or <NUM_LIT:0><EOL><DEDENT>coArgCount = getattr(method, '<STR_LIT>', getattr(method, '<STR_LIT>')).co_argcount<EOL>if(coArgCount >= number_of_arguments and coArgCount - number_of_defaults <= number_of_arguments):<EOL><INDENT>return True<EOL><DEDENT>return False<EOL>
Returns True if the given method will accept the given number of arguments

       method: the method to perform introspection on
       number_of_arguments: the number_of_arguments