@classmethod
  def value_for(cls, key):
    if key in cls.value_dict:
      return cls.key_dict[key]
    else:
      raise InvalidArgument("parse error: not a valid key for %s: %s" % (cls.__name__, key))
dataset/ETHPy150Open bloomreach/zinc/zinc.py/_Enum.value_for/original