How to reproduce vtkImageCropFilter from VTK.js in Python?

The following example from VTK.js website shows a Crop Filter that doesn’t seem to exist on “vanilla” VTK. How can I reproduce it with Python?

The class to use in VTK/C++ is vtkExtractVOI.