human
Complete the below
def _generative(*assertions):

    ''''Mark a method as generative, e.g. method-chained.'
    '''
assistant
#Here is the Python program you requested.
    @util.decorator
    def generate(fn, *args, **kw):
        self = args[0]._clone()
        for assertion in assertions:
            assertion(self, fn.__name__)
        fn(self, *args[1:], **kw)
        return self
    return generate