def METHOD_NAME(panel_data) -> None:
    with pytest.raises(ValueError):
        ClusteredCovariance(
            panel_data.y,
            panel_data.x,
            panel_data.params,
            panel_data.entity_ids,
            panel_data.time_ids,
            extra_df=0,
            clusters=panel_data.cluster5,
        )
    with pytest.raises(ValueError):
        ClusteredCovariance(
            panel_data.y,
            panel_data.x,
            panel_data.params,
            panel_data.entity_ids,
            panel_data.time_ids,
            extra_df=0,
            clusters=panel_data.cluster4[::2],
        )