def validate_argsort_with_ascending(ascending, args, kwargs):
if is_integer(ascending) or ascending is None:<EOL><INDENT>args = (ascending,) + args<EOL>ascending = True<EOL><DEDENT>validate_argsort_kind(args, kwargs, max_fname_arg_count=<NUM_LIT:3>)<EOL>return ascending<EOL>
If 'Categorical.argsort' is called via the 'numpy' library, the
first parameter in its signature is 'axis', which takes either
an integer or 'None', so check if the 'ascending' parameter has
either integer type or is None, since 'ascending' itself should
be a boolean