def METHOD_NAME(self, playlist_id):
    """
    Export a given playlist as csv.
    ---
    tags:
      - Export
    parameters:
      - in: path
        name: playlist_id
        required: True
        type: string
        format: UUID
        x-example: a24a6ea4-ce75-4665-a070-57453082c25
    responses:
        200:
            description: Playlist exported as csv
    """
    user_service.block_access_to_vendor()
    playlist = playlists_service.get_playlist(playlist_id)
    user_service.check_playlist_access(playlist, supervisor_access=True)
    project = projects_service.get_project(playlist["project_id"])
    self.task_type_map = tasks_service.get_task_type_map()
    self.task_status_map = tasks_service.get_task_status_map()
    task_ids = []
    for shot in playlist["shots"]:
        preview_file = files_service.get_preview_file(
            shot["preview_file_id"]
        )
        task_ids.append(preview_file["task_id"])
    self.task_comment_map = tasks_service.get_last_comment_map(task_ids)
    episode = self.get_episode(playlist)
    csv_content = []
    headers = self.build_headers(playlist, project, episode)
    csv_content += headers
    for shot in playlist["shots"]:
        csv_content.append(self.build_row(shot))
    file_name = "%s playlist %s" % (project["name"], playlist["name"])
    return csv_utils.build_csv_response(csv_content, slugify(file_name))