code: def implements(*interfaces):
          
          import sys
  
          frame = sys._getframe(1)
          locals_ = frame.f_locals
  
          # Some sanity checks
          msg = 'implements() can only be used in a class definition'
          assert locals_ is not frame.f_globals and '__module__' in locals_, msg
  
          locals_.setdefault('_implements', []).extend(interfaces)
docs: Can be used in the class definition of `Component`
          subclasses to declare the extension points that are extended.