def Parse(self, argument):
    if self.enum_values and argument not in self.enum_values:
      raise ValueError("value should be one of <%s>" %
                       "|".join(self.enum_values))
    return argument
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/python-gflags/gflags.py/EnumParser.Parse/original