sample_data_utils/utils.py
def memoize(func):
    """Decorator that stores function results in a dictionary to be used on the
    next time that the same arguments were informed."""

    func._cache_dict = {}

    @wraps(func)
    def _inner(*args, **kwargs):
        return _get_memoized_value(func, args, kwargs)

    return _inner
def memoize(func):
    func._cache_dict = {}

    @wraps(func)
    def _inner(*args, **kwargs):
        return _get_memoized_value(func, args, kwargs)

    return _inner
def memoize ( func ) : func . _cache_dict = { } @ wraps ( func ) def _inner ( * args , * * kwargs ) : return _get_memoized_value ( func , args , kwargs ) return _inner
Decorator that stores function results in a dictionary to be used on the
    next time that the same arguments were informed.
Decorator that stores function results in a dictionary to be used on the next time that the same arguments were informed .