def _array_of_arrays(list_of_arrays):
    out = np.empty(len(list_of_arrays), dtype=object)
    out[:] = list_of_arrays
    return out
Creates an array of array from list of arrays.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/neighbors/approximate.py/_array_of_arrays