def transform(config: SVCMConfig, data: Any):
    host: HostResolved = data[0]
    payload: Dict[(str, Any)] = data[1]
    code_lists: List[CodeList] = []
    option_sets = payload.get('optionSets', [])
    categories = payload.get('categories', [])
    for option_set in option_sets:
        code_lists.append(CodeList(**option_set))
    for category in categories:
        code_lists.append(CodeList(**category, type='categories'))
    return (host, build_bundle(code_lists, host.baseUrl))
def transform(config: SVCMConfig, data: Any):
    host: HostResolved = data[0]
    payload: Dict[(str, Any)] = data[1]
    code_lists: List[CodeList] = []
    option_sets = payload.get('optionSets', [])
    categories = payload.get('categories', [])
    for option_set in option_sets:
        code_lists.append(CodeList(**option_set))
    for category in categories:
        code_lists.append(CodeList(**category, type='categories'))
    return (host, build_bundle(code_lists, host.baseUrl))