chain of responsibility pattern what we want is to create some sort of way for us to make single call and then have the functions called dynamically class catchall(object)def __init__(self)self next_to_execute none def execute(self)print("end reached "class function class(object)def __init__(self)self next_to_execute catchall(def execute(self)print("function_ "self next_to_execute execute(class function class(object)def __init__(self)self next_to_execute catchall(def execute(self)print("function_ "self next_to_execute execute(class function class(object)def __init__(self)self next_to_execute catchall(def execute(self)print("function_ "self next_to_execute execute(class function class(object)def __init__(self)self next_to_execute catchall(def execute(self)print("function_ "self next_to_execute execute(