def emit_children(self, type='<STR_LIT>'):
def is_type(element, type):<EOL><INDENT>type_info = element.get('<STR_LIT:type>')<EOL>if type == type_info:<EOL><INDENT>return True<EOL><DEDENT>if type == '<STR_LIT>' or type == '<STR_LIT>':<EOL><INDENT>return False<EOL><DEDENT>if type_info == '<STR_LIT>' or type_info == '<STR_LIT>':<EOL><INDENT>return False<EOL><DEDENT>return True<EOL><DEDENT>ret = []<EOL>for root in [i for i in self.tree.getchildren() if is_type(i, type)]:<EOL><INDENT>for i in root.iter():<EOL><INDENT>line = self.get_depth_str(i, type=type)<EOL>name_str = self.get_name_str(i)<EOL>room_consumed = len(name_str)<EOL>line += name_str<EOL>if i.get('<STR_LIT:type>') == '<STR_LIT>' ori.get('<STR_LIT:type>') == '<STR_LIT>' ori.get('<STR_LIT>') is not None ori.get('<STR_LIT>') is not None:<EOL><INDENT>line += self.get_datatype_str(i, room_consumed)<EOL><DEDENT>ret.append(line)<EOL><DEDENT><DEDENT>return ret<EOL>
emit_children

        High-level api: Emit a string presentation of the model.

        Parameters
        ----------

        type : `str`
            Type of model content required. Its value can be 'other', 'rpc', or
            'notification'.

        Returns
        -------

        str
            A string presentation of the model that is very similar to the
            output of 'pyang -f tree'