def METHOD_NAME(self, value):
    if isinstance(value, Children) and \
       len(set([type(n)==type(self) for n in value]))<2:
        self._children = value
    else:
        raise ValueError("children:wrong type")