<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clone(self):
 """Duplicate a Pangler. Returns a copy of this Pangler, with all the same state. Both will be bound to the same instance and have the same `id`, but new hooks will not be shared. """


        p = type(self)(self.id)
        p.hooks = list(self.hooks)
        p.instance = self.instance
        return p