code: def initialized(func):
      
  
      def wrapper(self, *args, **kwargs):
          """ internal wrapper function """
          if not self.__is_initialized__:
              return EmptyDot()
          return func(self, *args, **kwargs)
      return wrapper
docs: decorator for testing if a class has been initialized
          prior to calling any attribute