def scorers_from_csv(csv: str) -> Set[Scorers]:
  """Converts a CSV of enums to an actual set of Enum values.

  Args:
    csv: CSV string of Scorer names.

  Returns:
    Set containing Scorers.

  Raises:
    ValueError if csv contains a token which is not a valid Scorer.
  """
  values = []
  for value in csv.split(","):
    try:
      values.append(Scorers[value])
    except KeyError:
      raise ValueError(f"Unknown value {value}")
  return set(values)
Converts a CSV of enums to an actual set of Enum values.

  Args:
    csv: CSV string of Scorer names.

  Returns:
    Set containing Scorers.

  Raises:
    ValueError if csv contains a token which is not a valid Scorer.
  
sourcecode/scoring/enums.py