<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_or_clear(self, path, **kwargs):
 """Create path and recursively clear contents."""


        try:
            yield self.create(path, **kwargs)
        except NodeExistsException:
            children = yield self.get_children(path)
            for name in children:
                yield self.recursive_delete(path + "/" + name)