def METHOD_NAME(self):
    with pytest.raises(ValueError):
        # if a list is passed to the `layer_widths` argument, it must have a length equal to `num_stacks`
        NBEATSModel(
            input_chunk_length=1,
            output_chunk_length=1,
            num_stacks=3,
            layer_widths=[1, 2],
        )
    with pytest.raises(ValueError):
        NHiTSModel(
            input_chunk_length=1,
            output_chunk_length=1,
            num_stacks=3,
            layer_widths=[1, 2],
        )