def validate_take_with_convert(convert, args, kwargs):
 if (isinstance(convert, ndarray) or (convert is None)):
  args = ((convert,) + args)
  convert = True
 validate_take(args, kwargs, max_fname_arg_count=3, method='both')
 return convert

def validate_take_with_convert ( convert , args , kwargs ) : if ( isinstance ( convert , ndarray ) or ( convert is None ) ) : args = ( ( convert , ) + args ) convert = True validate_take ( args , kwargs , max_fname_arg_count = 3 , method = 'both' ) return convert
if this function is called via the numpy library .