@staticmethod<EOL><INDENT>def _get_sequence(scope, tag, parent):<DEDENT>
new_scope = []<EOL>for item in scope:<EOL><INDENT>if isinstance(item, tuple):<EOL><INDENT>one, two = item<EOL>if one.getparent() == parent:<EOL><INDENT>new_scope.append(one)<EOL><DEDENT>else:<EOL><INDENT>new_scope.append(two)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>new_scope.append(item)<EOL><DEDENT><DEDENT>return [child for child in parent.iterchildren(tag=tag)<EOL>if child in new_scope]<EOL>
_get_sequence

        Low-level api: Return a list of children of a parent with the same tag
        within the scope.

        Parameters
        ----------

        scope : `list`
            List members can be an element, or a tuple of two elements.

        tag : `str`
            Identifier in `{url}tagname` notation.

        parent : `Element`
            The parent node.

        Returns
        -------

        list
            A list of children with the same tag within the scope.