def _is_peer(self, keys, node_self, node_other):
for key in keys:<EOL><INDENT>s = list(node_self.iterchildren(tag=key))<EOL>o = list(node_other.iterchildren(tag=key))<EOL>if len(s) < <NUM_LIT:1> or len(o) < <NUM_LIT:1>:<EOL><INDENT>raise ConfigError("<STR_LIT>".format(key,<EOL>self.device.get_xpath(node_self)))<EOL><DEDENT>if len(s) > <NUM_LIT:1> or len(o) > <NUM_LIT:1>:<EOL><INDENT>raise ConfigError("<STR_LIT>".format(key,<EOL>self.device.get_xpath(node_self)))<EOL><DEDENT>if s[<NUM_LIT:0>].text != o[<NUM_LIT:0>].text:<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
_is_peer

        Low-level api: Return True if node_self and node_other are considered
        as peer with regards to a set of keys.

        Parameters
        ----------

        keys : `list`
            A list of keys in `{url}tagname` notation.

        node_self : `Element`
            An Element node on this side.

        node_other : `Element`
            An Element node on the other side.

        Returns
        -------

        list
            True if node_self is a peer of node_other, otherwise, return False.