def create_source_sequence(resolve, name, clip_info_list):
    """
    Creates a source sequence from a given name and a list of info
    generated by compute_source_sequence() or extract_tl_item_info()
    """
    project_manager = resolve.GetProjectManager()
    resolve_project = project_manager.GetCurrentProject()
    media_pool = resolve_project.GetMediaPool()
    edit_metadata = []
    for clip in clip_info_list:
        for segment in clip["segments"]:
            edit_metadata.append({"mediaPoolItem": clip["mp_item"],
                                  "startFrame": segment[0],
                                  "endFrame": segment[1]})
    timeline = media_pool.CreateEmptyTimeline(name)
    resolve_project.SetCurrentTimeline(timeline)
    for edit in edit_metadata:
        status = media_pool.AppendToTimeline([edit])
    return timeline