def normalize_ped_delay_hours(study_hours):
  """
  Normalize the given ped delay study hours, converting them to `StudyHours` enum
  values (see `bdit_flashcrow` codebase, in particular `@/lib/Constants`).
  """
  study_hours_norm = study_hours.lower()
  if study_hours_norm == 'pedestrian':
    return 'SCHOOL'
  if study_hours_norm == 'routine':
    return 'ROUTINE'
  return 'OTHER'