def METHOD_NAME(self, mapper, shard_id=None,
             instance=None, clause=None, **kw):
    if shard_id is None:
        shard_id = self.shard_chooser(mapper, instance, clause=clause)
    return self.__binds[shard_id]