def METHOD_NAME(reorder):
    from ..matrix_plotting import _sanitize_reorder
    if reorder is not True:
        assert _sanitize_reorder(reorder) == reorder
    else:
        assert _sanitize_reorder(reorder) == "average"