code: def ensure_true(bool_func: Callable[[Any], bool],
                  message=None) -> Filter_T:
      
  
      def validate(value):
          if bool_func(value) is not True:
              _raise_failure(message)
          return value
  
      return validate
docs: Validate any object to ensure the result of applying
      a boolean function to it is True.