def METHOD_NAME(pruned_array, sparse_threshold):
    pruned_correctly = numpy.vectorize(
        lambda x: True if abs(x) > abs(sparse_threshold) or x == 0 else x
    )
    assert pruned_correctly(pruned_array).all()