def ensure_maxlength_100_chars_and_tags_key_val_not_none(instance,
    attribute, value):
    """
    A helper function to ensure that the values for
    the reserved kays are less than a hundred character limit
    and that the tags do not have any none keys or vals
    """
    if isinstance(value, str):
        if len(value) > 100:
            raise ValueError('Values must not exceed length of 100 chars')
    elif isinstance(value, dict):
        for key in value:
            if key is None or key == 'None':
                raise ValueError("Tags keys can't be None")
            if value.get(key) is None:
                raise ValueError("Tags values can't be None")
            for elem in value[key]:
                if elem is None:
                    raise ValueError("Tags values can't be None")
                if len(elem) > 100:
                    raise ValueError(
                        'Values must not exceed length of 100 chars')
    return value
