@throws_when_stopped
    def create(self, path, data="", ephemeral=False, makepath=False):
        if not path.startswith("/"):
            raise RuntimeError("Path has to be absolute.")

        parent_path = path[:path.rfind("/")]
        child_name = path[(path.rfind("/") + 1):]

        parent_node = self._find(parent_path)

        ensure_path_called = False
        if parent_node is None:
            if not makepath:
                raise NoNodeException("%s doesn't exist", parent_path)
            else:
                self.ensure_path(parent_path)
                parent_node = self._find(parent_path)
                ensure_path_called = True

        assert not parent_node.ephemeral
        parent_node.add_child(child_name, data, ephemeral=ephemeral)
        if not ensure_path_called:
            # Otherwise, ensure_path would have sent notification
            self._notify_children_watches(str(parent_node))
Default implementation of mapping the log record into a dict
dataset/ETHPy150Open pinterest/kingpin/kingpin/tests/kazoo_utils/mock_kazoo_client.py/MockKazooClient.create--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/logging/handlers.py/HTTPHandler.mapLogRecord