Why do you need a dummy function? is this a default value for the `function` attribute? if it's a required attribute, you might want to
```self.function = None
...
assert self.function, "a regularization function is required to create a Regularization object"
```
Perhaps I don't understand how this obj is meant to be used...