code: def not_empty(value,
                allow_empty = False,
                **kwargs):
      
      if not value and allow_empty:
          return None
      elif not value:
          raise errors.EmptyValueError('value was empty')
  
      return value
docs: Validate that ``value`` is not empty.
  
      :param value: The value to validate.
  
      :param allow_empty: If ``True``, returns :obj:`None <python:None>` if
        ``value`` is empty. If ``False``, raises a
        :class:`EmptyValueError <validator_collection.errors.EmptyValueError>`
        if ``value`` is empty. Defaults to ``False``.
      :type allow_empty: :class:`bool <python:bool>`
  
      :returns: ``value`` / :obj:`None <python:None>`
  
      :raises EmptyValueError: if ``value`` is empty and ``allow_empty`` is ``False``