def METHOD_NAME(stats: Sequence[Dict[str, Any]]):
    """Logs 'warning' stats if present."""
    if stats is None:
        return
    for sts in stats:
        warn = sts.get("warning", None)
        if warn is None:
            continue
        if isinstance(warn, SamplerWarning):
            log_warning(warn)
        else:
            logger.warning(warn)
    return