def METHOD_NAME(obj, q):
    assert check_is_mtype(obj, "pred_quantiles", "Proba")
    assert (obj.index == d.index).all()
    if not isinstance(q, list):
        q = [q]
    expected_columns = pd.MultiIndex.from_product([d.columns, q])
    assert (obj.columns == expected_columns).all()