def __init__(self, function=dict):
        """Initialize lazy dictionary with given function.

        :param function: it must return a dictionary like structure
        """
        super(LazyDict, self).__init__()
        self._cached_dict = None
        self._function = function
def __init__ ( self , function = dict ) : super ( LazyDict , self ) . __init__ ( ) self . _cached_dict = None self . _function = function
Initialize lazy dictionary with given function.

        :param function: it must return a dictionary like structure