def METHOD_NAME(epochs: List, filteroptions: dict, log: bool = True) -> List:
    """
    Filter our items from the list of hyperopt results
    """
    if filteroptions['only_best']:
        epochs = [x for x in epochs if x['is_best']]
    if filteroptions['only_profitable']:
        epochs = [x for x in epochs
                  if x['results_metrics'].get('profit_total', 0) > 0]
    epochs = _hyperopt_filter_epochs_trade_count(epochs, filteroptions)
    epochs = _hyperopt_filter_epochs_duration(epochs, filteroptions)
    epochs = _hyperopt_filter_epochs_profit(epochs, filteroptions)
    epochs = _hyperopt_filter_epochs_objective(epochs, filteroptions)
    if log:
        logger.info(f"{len(epochs)} " +
                    ("best " if filteroptions['only_best'] else "") +
                    ("profitable " if filteroptions['only_profitable'] else "") +
                    "epochs found.")
    return epochs