code: def validate(method):
      
  
      @wraps(method)
      def mod_run(self, rinput):
          self.validate_input(rinput)
          #
          result = method(self, rinput)
          #
          self.validate_result(result)
          return result
  
      return mod_run
docs: Decorate run method, inputs and outputs are validated