def METHOD_NAME(self, indigoObject, index=None):
    if not index:
        return IndigoLib.checkResult(
            self._lib().bingoInsertRecordObj(self._id, indigoObject.id),
            BingoException,
        )
    else:
        return IndigoLib.checkResult(
            self._lib().bingoInsertRecordObjWithId(
                self._id, indigoObject.id, index
            ),
            BingoException,
        )