<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_van_der_corput_samples(idx, number_base=2):
 """ Van der Corput samples. Args: idx (int, numpy.ndarray):
 The index of the sequence. If array is provided, all values in array is returned. number_base (int):
 The numerical base from where to create the samples from. Returns (float, numpy.ndarray):
 Van der Corput samples. """

    assert number_base > 1

    idx = numpy.asarray(idx).flatten() + 1
    out = numpy.zeros(len(idx), dtype=float)

    base = float(number_base)
    active = numpy.ones(len(idx), dtype=bool)
    while numpy.any(active):
        out[active] += (idx[active] % number_base)/base
        idx //= number_base
        base *= number_base
        active = idx > 0
    return out