code: def test_given_categorical_dependent_data_when_perform_kernel_based_test_then_reject():
      x = np.random.normal(0, 1, 1000)
      y = []
  
      for v in x:
          if v > 0:
              y.append(0)
          else:
              y.append(1)
      y = np.array(y).astype(str)
  
      assert kernel_based(x, y) < 0.05
  
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 5 for calling a global function with example usage: test_given_categorical_dependent_data_when_perform_kernel_based_test_then_reject() without return types