code: def test_given_random_seed_when_perform_conditional_approx_kernel_based_test_then_return_deterministic_result(
      _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))
  
      assert approx_kernel_based(
          x,
          z,
          y,
          num_random_features_X=1,
          num_random_features_Y=1,
          num_random_features_Z=1,
          bootstrap_num_samples=5,
          bootstrap_num_runs=10,
          p_value_adjust_func=np.mean,
          use_bootstrap=True,
      ) != approx_kernel_based(
          x,
          z,
          y,
          num_random_features_X=1,
          num_random_features_Y=1,
          num_random_features_Z=1,
          bootstrap_num_samples=5,
          bootstrap_num_runs=10,
          p_value_adjust_func=np.mean,
          use_bootstrap=True,
      )
  
      np.random.seed(0)
      result_1 = approx_kernel_based(
          x,
          z,
          y,
          num_random_features_X=1,
          num_random_features_Y=1,
          num_random_features_Z=1,
          bootstrap_num_samples=5,
          bootstrap_num_runs=10,
          p_value_adjust_func=np.mean,
          use_bootstrap=True,
      )
      np.random.seed(0)
      result_2 = approx_kernel_based(
          x,
          z,
          y,
          num_random_features_X=1,
          num_random_features_Y=1,
          num_random_features_Z=1,
          bootstrap_num_samples=5,
          bootstrap_num_runs=10,
          p_value_adjust_func=np.mean,
          use_bootstrap=True,
      )
  
      assert result_1 == result_2
  
imports: import random
  import numpy
  import pytest
  from flaky import flaky
  from dowhy.gcm.independence_test import approx_kernel_based, kernel_based
label_desc: Use image node_id 12 for calling a global function with example usage: test_given_random_seed_when_perform_conditional_approx_kernel_based_test_then_return_deterministic_result(_preserve_random_generator_state) without return types