def flat_list_of_lists(l):
    """flatten a list of lists [[1,2], [3,4]] to [1,2,3,4]"""
    return [item for sublist in l for item in sublist]
flatten a list of lists [[1,2], [3,4]] to [1,2,3,4]
videomamba/video_mm/utils/basic_utils.py