Please rewrite as:

```
    >>> indices = resample(y, proba={1:.1, 2:.1, 3:.8},
    ...     n_samples=12, random_state=337, shuffle=True)
```