def _array_of_arrays(list_of_arrays):
 out = np.empty(len(list_of_arrays), dtype=object)
 out[:] = list_of_arrays
 return out

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 .