def METHOD_NAME(func, **kwargs):
    """
    nxrun = NOT xrun
    Like xrun but for executing python code and to
        * call directly
        * without a timeout
        * with **kwargs only
    NOTE: xrun has the advantage of shielding the caller from any side effects. So be aware when choosing nxrun over xrun
    """
    fname = func.__name__
    try:
        result = func(**kwargs)
        if result > 0:
            logger.error(msg := f"Non-zero return code {result} = {fname}({kwargs=})")
            raise Exception(msg)
    except Exception as e:
        logger.error(f"Exception in {fname}({kwargs=}): {e}", exc_info=True)
        raise
    return 0