[Olena-patches] 1758: sandbox:Subsampling function.