def _create_shifted_copy(arrays, arrays_index, index, delta):
    """Creates a copy of the arrays with one element shifted."""
    A = arrays[arrays_index]
    A_shifted = A.copy()
    A_shifted[index] += delta
    arrays_shifted = list(arrays)
    arrays_shifted[arrays_index] = A_shifted
    return arrays_shifted