def METHOD_NAME(self, namespace):
    try:
        return self._children_dict[namespace]
    except KeyError:
        raise ValueError(
            "Node %s is not a child of node %s" % (namespace, self.name)
        )