code: def local_method(f):
      '''Decorator to be used in conjunction with :class:`LocalMixin` methods.
      '''
      name = f.__name__
  
      def _(self, *args):
          local = self.local
          if name not in local:
              setattr(local, name, f(self, *args))
          return getattr(local, name)
      return f local_method(f):
      '''Decorator to be used in conjunction with :class:`LocalMixin` methods.
      '''
      name = f.__name__
  
      def _(self, *args):
          local = self.local
          if name not in local:
              setattr(local, name, f(self, *args))
          return getattr(local, name)
      return _
docs: Decorator to be used in conjunction with :class:`LocalMixin` methods.