def check_errcode(result, func, cargs, cpl=False):
 check_err(result, cpl=cpl)

def check_errcode ( result , func , cargs , cpl = False ) : check_err ( result , cpl = cpl )
check the error code returned .