def child_sequence(self, child):
for field in self._astroid_fields:<EOL><INDENT>node_or_sequence = getattr(self, field)<EOL>if node_or_sequence is child:<EOL><INDENT>return [node_or_sequence]<EOL><DEDENT>if (<EOL>isinstance(node_or_sequence, (tuple, list))<EOL>and child in node_or_sequence<EOL>):<EOL><INDENT>return node_or_sequence<EOL><DEDENT><DEDENT>msg = "<STR_LIT>"<EOL>raise exceptions.AstroidError(msg % (repr(child), repr(self)))<EOL>
Search for the sequence that contains this child.

        :param child: The child node to search sequences for.
        :type child: NodeNG

        :returns: The sequence containing the given child node.
        :rtype: iterable(NodeNG)

        :raises AstroidError: If no sequence could be found that contains
            the given child.