def _default_model_callback(model: BaseModel, **kwargs) -> BaseModel: # we could filter kwargs, but it's better not to - this will detect if we pass useless stuff return model.prepare(**kwargs)
def cb2(model: BaseModel, *args, **kwargs): return model.prepare(*args, **kwargs)