def METHOD_NAME(timeline, path, gradeMode=0):
    trackCount = timeline.GetTrackCount("video")
    clips = {}
    for index in range(1, int(trackCount) + 1):
        clips.update(timeline.GetItemsInTrack("video", index))
    return timeline.ApplyGradeFromDRX(path, int(gradeMode), clips)