code: def partition_transcript(raw_transcript: str):
      """Group video transcript elements when they are too large.
  
      Args:
          transcript (str): downloaded video transcript as a raw string.
  
      Returns:
          List: a list of partitioned transcript
      """
      if len(raw_transcript) <= MAX_CHUNK_SIZE:
          return [{"text": raw_transcript}]
  
      k = 2
      while True:
          if (len(raw_transcript) / k) <= MAX_CHUNK_SIZE:
              break
          else:
              k += 1
      chunk_size = int(len(raw_transcript) / k)
  
      partitioned_transcript = [
          {"text": raw_transcript[i : i + chunk_size]}
          for i in range(0, len(raw_transcript), chunk_size)
      ]
      if len(partitioned_transcript[-1]["text"]) < 30:
          partitioned_transcript.pop()
      return partitioned_transcript
  
imports: import os
  import shutil
  from typing import Dict, List
  import pandas
  import evadb
  from pytube import YouTube, extract
  from youtube_transcript_api import YouTubeTranscriptApi
label_desc: Use image node_id 3 for calling a global function with example usage: partition_transcript(raw_transcript) and returns: partitioned_transcript, list