code: def parse_all_scores(
      human_fn: str,
      baseline_fn: str,
      alignment_fn: str,
      removed_ids: List[str],
      reference_option: str,
      outfn: Optional[str] = None,
  ):
      """
      Uses metadata_example_idx to help identify examples that were marked problematic by
      reviewers.
      """
      rows, tags = parse_csv_with_idx(human_fn)
  
      if baseline_fn:
          newrows, tsvtags = parse_scorers_baseline(baseline_fn, rows)
      else:
          newrows = rows
          tsvtags = []
      newrows, tsvtags = parse_alignment_scorers(
          alignment_fn, newrows, tsvtags
      )
  
      all_tags = tsvtags
      all_tags = clean_tags(all_tags, reference_option)
  
      lines = []
      column_titles = tags + tsvtags
      lines.append(column_titles)
      for k, v in newrows.items():
          if v["metadata_example_idx"] in removed_ids:
              continue
          lines.append([newrows[k][t] for t in column_titles])
  
      print(f"ended up with {len(lines) - 1} rows.")
  
      if outfn is not None:
          with open(outfn, "w") as f:
              for l in lines:
                  f.write("\t".join(l) + "\n")
          print(f"Scores written to: {outfn}")
      return lines, all_tags
  
imports: import argparse
  from collections import defaultdict
  import csv
  import math
  import os
  import pathlib
  from typing import Dict, Iterable, List, Optional, Set, Tuple, Union
  import pandas
  from projects.roscoe.meta_evaluation.correlations import Analyzer
  from projects.roscoe.score import ROSCOE_SA, ROSCOE_SS, ROSCOE_LI, ROSCOE_LC, SUPERVISED_SCORES, UNSUPERVISED_SCORES
  from projects.roscoe.utils import assert_all_elements_same_length, ordered_union, split_list
  from projects.roscoe.meta_evaluation.table_file_writing import ANNOTATION_COLUMN_ORDER, COLUMN_RENAMES, MODELS, ROSCOE_SECTIONS, STEP_COLUMN_RENAMES, section_rows, write_every_dataset_summary_table_tex, write_every_dataset_final_summary_table_tex, write_granular_summary_tex
label_desc: Use image node_id 34 for calling a global function with example usage: parse_all_scores(human_fn, baseline_fn, alignment_fn, removed_ids, reference_option, outfn) and returns: lines,  all_tags