```
        if self.strategy not in ("mean", "median", "constant"):
            raise ValueError("Unknown strategy type: %s, expected 'mean', "
                             "'median' or 'constant'" % self.strategy)
```