code: def clean_tags(tags, reference_option: str):
      remove_list = ["Line #", "is_Perturbed", "GoldScore", "ID", ""]
      # outdated scores
      remove_list += ["coherence_max", "coherence_step"]
      # unused baselines
      remove_list += [
          "BARTScore Informativeness",
          "BARTScore Recall",
          "BERTScore_P",
          "BERTScore_R",
          "bart_score_para_hypo_ref",
          "bart_score_para_ref_hypo",
          "bart_score_para_harm_f",
          "prism_ref_hypo",
          "prism_hypo_ref",
          "Finetuned-BARTScore Recall",
          "Finetuned-BARTScore Informativeness",
      ]
      # with or without reference reasoning chain
      if reference_option == "yes":
          remove_list += UNSUPERVISED_SCORES
      elif reference_option == "no":
          remove_list += SUPERVISED_SCORES
      return [t for t in tags if t not in remove_list]
  
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 7 for calling a global function with example usage: clean_tags(tags, reference_option) and returns: unknown