import csv


def LoadMOS(mos_csv):
  """Load a csv file withMOS scores.

  Args:
    mos_csv: Path to a csv file that has degraded and MOS.

  Returns:
    Dictionary with filename keys and MOS values
  """
  mos_dict = {}
  with open(mos_csv, 'r') as csvfile:
    mos_reader = csv.reader(csvfile)
    for row in mos_reader:
      # Skip header
      if row[1] == 'MOS':
          continue
      mos_dict[row[0]] = row[1]
  return mos_dict