PEP 257:

```
    """Resamples a classes array `y` and returns an array of indices
    
     Parameters control the desired class distribution of the indices.
```