def func_best_model(scan_object, metric='val_acc', asc=False):
    """Picks the best model based on a given metric and
    returns the index number for the model.

    NOTE: for loss 'asc' should be True"""
    import warnings as warnings
    warnings.simplefilter('ignore')
    from ..utils.best_model import best_model, activate_model
    model_no = best_model(scan_object, metric, asc)
    out = activate_model(scan_object, model_no)
    return out
