code: def test_get_request_parameter_offset_raises(
      offset: str,
      expected_error_message: str,
      build_request: Callable[..., Request],
  ) -> None:
      request = build_request(query_string=f"offset={offset}")
      with pytest.raises(
          InvalidParameterError, match=expected_error_message
      ):
          _ = get_request_parameter_offset(request)
  
file_path: datasets-server/libs/libapi/tests/test_request.py
imports: from collections.abc import Callable
  from contextlib import nullcontext
  from typing import Optional
  import pytest
  from starlette.requests import Request
  from libapi.exceptions import InvalidParameterError, MissingRequiredParameterError
  from libapi.request import get_request_parameter, get_request_parameter_length, get_request_parameter_offset
label_desc: Use image node_id 7 for calling a global function with example usage: test_get_request_parameter_offset_raises(offset, expected_error_message, build_request) without return types