<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def downsample_with_striding(array, factor):
 """Downsample x by factor using striding. @return: The downsampled array, of the same type as x. """

    return array[tuple(np.s_[::f] for f in factor)]