def _check_eofs_frequency(eofs_frequency):
    """Check given EOFs frequency is valid."""

    if eofs_frequency is None:
        eofs_frequency = 'monthly'

    if eofs_frequency not in ('daily', 'monthly', 'seasonal'):
        raise ValueError("Unsupported EOF frequency '%r'" % eofs_frequency)

    return eofs_frequency