def METHOD_NAME(grid):
    """
    Test that compute_bins fails with incorrect format.
    """
    with pytest.raises(GMTInvalidInput):
        grdhisteq.compute_bins(grid=grid, output_type=1)
    with pytest.raises(GMTInvalidInput):
        grdhisteq.compute_bins(grid=grid, output_type="pandas", header="o+c")