in contentannotation/video2annotation.py [0:0]
def process_chunk(videos_to_process, size_chunk, worker_number):
# Calculate start and end indices for this worker's chunk
start_index = worker_number * size_chunk
end_index = min(start_index + size_chunk, len(videos_to_process))
# Process videos in this worker's chunk
for video_id in videos_to_process[start_index:end_index]:
process_single_video(video_id, worker_number)