def _validate_strat_level(ts_num, ts_denom, strat_num, strat_denom):
    """
    Check if the stratification level is valid for the time signature

    Parameters
    ----------
    ts_num : int
        Time signature numerator
    ts_denom : int
        Time signature denominator
    strat_num : int
        Stratification level numerator
    strat_denom : int
        Stratification level denominator

    Returns
    -------
    isvalid : bool

    Examples
    --------
    >>> _validate_strat_level(3, 4, *strat_level_to_note_dur_frac(4, False))
    True

    >>> _validate_strat_level(3, 4, *strat_level_to_note_dur_frac(4, True))
    True

    >>> _validate_strat_level(3, 2, *strat_level_to_note_dur_frac(1, False))
    False

    >>> _validate_strat_level(3, 2, *strat_level_to_note_dur_frac(1, True))
    True

    >>> _validate_strat_level(3, 2, *strat_level_to_note_dur_frac(2, True))
    True

    >>> _validate_strat_level(3, 4, *strat_level_to_note_dur_frac(128, False))
    True

    >>> _validate_strat_level(16, 8, *strat_level_to_note_dur_frac(128, True))
    False

    >>> _validate_strat_level(3, 4, *strat_level_to_note_dur_frac(4, False))
    True
    """
    isvalid = ((ts_num * strat_denom) % (strat_num * ts_denom)) == 0

    return isvalid