code: def test_given_parallelization_is_enabled_when_perform_regression_based_conditional_independence_test_then_p_value_remains_the_same(
      preserve_random_generator_state,
  ):
      z = np.random.randn(1000, 1)
      x = np.exp(z + np.random.rand(1000, 1))
      y = np.exp(z + np.random.rand(1000, 1))
  
      set_random_seed(0)
      p_value_1 = regression_based(x, y, z)
      set_random_seed(0)
      p_value_2 = regression_based(x, y, z)
  
      assert p_value_1 == p_value_2
  
file_path: dowhy/tests/gcm/independence_test/test_regression.py
imports: import random
  import numpy
  import pytest
  from flaky import flaky
  from dowhy.gcm.independence_test import regression_based
  from dowhy.gcm.util.general import set_random_seed
  from tests.gcm.independence_test.test_kernel import _generate_categorical_data
label_desc: Use image node_id 10 for calling a global function with example usage: test_given_parallelization_is_enabled_when_perform_regression_based_conditional_independence_test_then_p_value_remains_the_same(preserve_random_generator_state) without return types