@classmethod
def _clip_to_desired_rounds(cls, rounds):
    """
        helper for :meth:`_generate_rounds` --
        clips rounds value to desired min/max set by class (if any)
        """
    mnd = cls.min_desired_rounds or 0
    if rounds < mnd:
        return mnd
    mxd = cls.max_desired_rounds
    if mxd and rounds > mxd:
        return mxd
    return rounds
