def METHOD_NAME():
    from ..matrix_plotting import _sanitize_labels
    labs = ["foo", "bar"]
    with pytest.raises(
        ValueError, match="Length of labels unequal to length of matrix."
    ):
        _sanitize_labels((6, 6), labs)
    for lab in [labs, np.array(labs)]:
        assert _sanitize_labels((2, 2), lab) == labs