code: def ChoiceEnum(choices: List[str]):
      """return the Enum class used to enforce list of choices"""
      return StrEnum("Choices", {k: k for k in choices})
  
file_path: fairseq/fairseq/dataclass/constants.py
imports: from enum import Enum, EnumMeta
  from typing import List
label_desc: Use image node_id 1 for calling a global function with example usage: ChoiceEnum(choices) and returns: StrEnum