@staticmethod
def _validate_kind(value):
    """Validates the kind attribute."""
    valid_kinds = ['levels', 'per_capita', 'efficiency_units']
    if value not in valid_kinds:
        mesg = "The 'kind' attribute must be in {}."
        raise AttributeError(mesg.format(valid_kinds))
    else:
        return value
