code: def checkValid(cls, reason):
          
          if reason not in cls.__VALID_REASONS:
              raise ValueError("reason must be one of {}, got {}".format(cls.__VALID_REASONS, reason))
docs: Raises ValueError if the reason is not one of the valid enumerations