def METHOD_NAME(action: str, value: Any):
    if action == 'init':
        progress_reporter.reset(value['total'])
        progress_reporter.set_description_str(value['description'])
    elif action == 'update':
        progress_reporter.update(value)