code: def override(cls):
      
  
      def check_override(method):
          if method.__name__ not in dir(cls):
              raise NameError("{} does not override any method of {}".format(
                  method, cls))
          return method
  
      return check_override
docs: Annotation for documenting method overrides.
  
      Arguments:
          cls (type): The superclass that provides the overriden method. If this
              cls does not actually have the method, an error is raised.