class superdef method(self)print("in super method"#default behavior def delegate(self)self action(#expected to be defined class inheritor(super)pass class replacer(super)#replace method completely def method(self)print("in replacer method"class extender(super)#extend method behavior def method(self)super method(selfprint("in extender method"class provider(super)fill in required method def action(self)print("in provider action"for klass in (inheritor,replacer,extender)