def METHOD_NAME(*args, **kwargs):
    service_name = self._client.meta.service_model.service_name
    operation_name = self._client.meta.method_to_api_mapping[item]
    region = self._client.meta.region_name
    prepared_request = None
    def event_handler(request: AWSPreparedRequest, **_):
        nonlocal prepared_request
        prepared_request = request
        # we need to return an AWS Response here
        aws_response = AWSResponse(
            url=request.url, status_code=200, headers=HTTPHeaders(), raw=None
        )
        aws_response._content = b""
        return aws_response
    self._client.meta.events.register(
        f"before-send.{service_name}.{operation_name}", handler=event_handler
    )
    try:
        target(*args, **kwargs)
    except Exception:
        pass
    self._client.meta.events.unregister(
        f"before-send.{service_name}.{operation_name}", handler=event_handler
    )
    return create_request_context(
        service_name=service_name,
        operation_name=operation_name,
        region=region,
        aws_request=prepared_request,
    )