code: def insertRows(self, row, count, parent=QModelIndex()):
          
  
          parent_node = self.get_node(parent)
          self.beginInsertRows(parent, row, row + count - 1)
          success = True
          for i in range(count):
              childNode = self.__default_node()
              success *= True if parent_node.insert_child(childNode, row) else False
          self.endInsertRows()
          return success
docs: Reimplements the :meth:`QAbstractItemModel.insertRows` method.
  
          :param row: Row.
          :type row: int
          :param count: Count.
          :type count: int
          :param parent: Parent.
          :type parent: QModelIndex
          :return: Method success.
          :rtype: bool