@given(integers())
    def test_cannot_set_invalid_values_for_max_frame_size(self, val):
        s = h2.settings.Settings()

        if 2**14 <= val <= 2**24 - 1:
            s.max_frame_size = val
            s.acknowledge()
            assert s.max_frame_size == val
        else:
            with pytest.raises(h2.exceptions.InvalidSettingsValueError) as e:
                s.max_frame_size = val

            s.acknowledge()
            assert e.value.error_code == h2.errors.PROTOCOL_ERROR
            assert s.max_frame_size == 16384

            with pytest.raises(h2.exceptions.InvalidSettingsValueError) as e:
                s[h2.settings.MAX_FRAME_SIZE] = val

            s.acknowledge()
            assert e.value.error_code == h2.errors.PROTOCOL_ERROR
            assert s[h2.settings.MAX_FRAME_SIZE] == 16384
return the index array for lagged values
dataset/ETHPy150Open python-hyper/hyper-h2/test/test_settings.py/TestSettings.test_cannot_set_invalid_values_for_max_frame_size--crossover with--dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/tools/grouputils.py/GroupSorted.lag_indices