I\'d like to recreate it in numpy or other python library.
numpy
I mean a function, that not just simply clips all the samples above the threshold level or nor