code: def get_partitions(partition_extractor, data: List[Any]) -> List[Any]:
      return list(sorted(set(map(partition_extractor, data))))
  
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 5 for calling a global function with example usage: get_partitions(partition_extractor, data) and returns: list