in ludwig/utils/data_utils.py [0:0]
def shuffle_unison_inplace(list_of_lists, random_state=None):
if list_of_lists:
assert all(len(l) == len(list_of_lists[0]) for l in list_of_lists)
if random_state is not None:
p = random_state.permutation(len(list_of_lists[0]))
else:
p = np.random.permutation(len(list_of_lists[0]))
return [l[p] for l in list_of_lists]
return None