code: def parse_partition(iterator):
      movie_id = None
      for line in iterator:
          if line[-1] == ":":
              # 'line' has a format "movie_id:'
              movie_id = int(line[:-1])
          else:
              # 'line' has a format "user_id,rating,date"
              yield parse_line(line, movie_id)
  
file_path: pipelinedp/examples/movie_view_ratings/common_utils.py
imports: from dataclasses import dataclass
  import os
  import shutil
  from typing import List, Any
  import apache_beam
label_desc: Use image node_id 2 for calling a global function with example usage: parse_partition(iterator) without return types