code: def test_fatal_error_is_raise_again(tmp_path):
      class MyTuner(gridsearch.GridSearch):
          def run_trial(self, trial, *fit_args, **fit_kwargs):
              raise errors.FatalError("FatalError raised.")
  
      tuner = MyTuner(directory=tmp_path, max_retries_per_trial=2)
      with pytest.raises(errors.FatalError, match="FatalError raised."):
          tuner.search()
  
imports: import os
  import pickle
  import time
  import numpy
  import pytest
  from sklearn import linear_model
  import keras_tuner
  from keras_tuner import errors
  from keras_tuner.distribute import oracle_client
  from keras_tuner.engine import base_tuner
  from keras_tuner.test_utils import mock_distribute
  from keras_tuner.tuners import gridsearch
  from keras_tuner.tuners import randomsearch
label_desc: Use image node_id 5 for calling a global function with example usage: test_fatal_error_is_raise_again(tmp_path) without return types