def METHOD_NAME(self, row, col, parent=QtCore.QModelIndex()):
    if (row, col) != (-1, -1):
        proxyIndex = self.createIndex(row, col, parent)
    else:
        proxyIndex = QtCore.QModelIndex()
    return proxyIndex