def METHOD_NAME(df_checks):
    """
    Raise ValueError if categories is provided, but is not a 1D array.
    """
    arrays = [[1, 1, 2, 2], ["red", "blue", "red", "blue"]]
    arrays = pd.MultiIndex.from_arrays(arrays, names=("number", "color"))
    with pytest.raises(ValueError):
        df_checks.encode_categorical(region=arrays)