def get_review_request(review_request_id, api_root):
    """Returns the review request resource for the given ID."""
    try:
        review_request = api_root.get_review_request(
            review_request_id=review_request_id)
    except APIError as e:
        raise HookError('Error getting review request: %s' % e)

    return review_request
dataset/ETHPy150Open reviewboard/rbtools/rbtools/hooks/common.py/get_review_request/original