def cskv_to_dict(option):
    """Convert kwargs into dictionary."""
    opts = {}
    option_list = option.split(',')
    for opt in option_list:
        if len(opt.split('=')) != 2:
            continue
        key = opt.split('=')[0]
        value = opt.split('=')[1]
        opts[key] = value
    return opts
