def METHOD_NAME(self, query, minSim, maxSim, metric="tanimoto"):
    return BingoObject(
        IndigoLib.checkResult(
            self._lib().bingoSearchSim(
                self._id, query.id, minSim, maxSim, metric.encode()
            ),
            BingoException,
        ),
        self,
    )