def has_named_kw_args(fn):
    params = inspect.signature(fn).parameters
    for (name, param) in params.items():
        if (param.kind == inspect.Parameter.KEYWORD_ONLY):
            return True
def has_named_kw_args(fn):
    params = inspect.signature(fn).parameters
    for (name, param) in params.items():
        if (param.kind == inspect.Parameter.KEYWORD_ONLY):
            return True