def generate_kwargs(options) -> T.List[dict]:
    return [{'type': 'kwargs', 'function': options.function, 'id': options.id, 'operation': options.operation, 'kwargs': list_to_dict(options.kwargs)}]
def generate_kwargs(options) -> T.List[dict]:
    return [{'type': 'kwargs', 'function': options.function, 'id': options.id, 'operation': options.operation, 'kwargs': list_to_dict(options.kwargs)}]