def METHOD_NAME(model, req, error=None):  # pylint: disable=unused-argument
    if isinstance(req, dict):
        kwargs = req
    else:
        kwargs = {"id": req}
    return model.obj.get(**kwargs)