def get_retrain_options(defaults=None):
    """Retrain-related options

    """
    if defaults is None:
        defaults = {}
    options = {'--id': {'dest': 'resource_id', 'default': defaults.get(
        'resource_id', None), 'help':
        'ID for the resource to be retrained.'}, '--add': {'dest': 'add',
        'default': defaults.get('add', None), 'help':
        'Path to the data file to be added.'}, '--window-size': {'type':
        int, 'dest': 'window_size', 'default': defaults.get('window_size', 
        -1), 'help':
        'Maximum number of datasets to be used in retraining. When not set, the new dataset will be added to the last one used.'
        }}
    return options
