from typing import Any
from typing import Callable


def simple_filter(desired_value: Any) -> Callable[[Any], bool]:
    """A simple filter function factory
    
    Arguments:
        desired_value {Any} -- value to be compared against.
    
    Returns:
        Callable[[Any], bool] -- The filter function
    """

    def filter_function(value: Any) -> bool:
        """A simple filter function that will compare a value with a previously defined desired value
        
        
        Arguments:
            value {Any} -- value to compare
        
        Returns:
            bool -- True for match
        """
        if value == desired_value:
            return True
        return False

    return filter_function