def backport_default_args(args):
    """Backport default args."""
    backport = {'restore_map_to_cpu': False, 'keep_every_n': 10000000,
        'read_text': True, 'read_io': False, 'io_count': 3, 'refine': False,
        'read_code': False, 'optimizer': 'adam',
        'dataset_filter_code_length': 0, 'karel_trace_usage': 'memory',
        'karel_code_usage': 'memory', 'karel_refine_dec': 'default',
        'karel_io_enc': 'lgrl', 'karel_trace_inc_val': True}
    for key, value in backport.items():
        if not hasattr(args, key):
            setattr(args, key, value)
