def METHOD_NAME(mock_gwc, mock_get_func_arg_val, tmpdir):
    mock_gwc.return_value.cachito_request_file_logs_dir = str(tmpdir)
    mock_gwc.return_value.cachito_request_file_logs_level = "DEBUG"
    mock_gwc.return_value.cachito_request_file_logs_format = (
        "[%(asctime)s %(name)s %(levelname)s %(module)s.%(funcName)s] %(message)s"
    )
    mock_get_func_arg_val.return_value = None
    task_id = mock.Mock()
    task = mock.Mock()
    def _dummy_task(msg, request_id):
        return
    task.__wrapped__ = _dummy_task
    expected = "Unable to get 'request_id'"
    with pytest.raises(InvalidRequestData, match=expected):
        celery_logging.setup_task_logging(task_id, task, args=["hello"], kwargs={"request_id": 3})