code: def test_given_dependent_categorical_Z_data_when_perform_generalised_cov_based_independence_test_then_returns_expected_result():
      x, y, z = _generate_categorical_data()
  
      assert (
          generalised_cov_based(
              x,
              y,
              z[
                  np.random.choice(
                      z.shape[0], z.shape[0], replace=False
                  )
              ],
          )
          < 0.05
      )
  
file_path: dowhy/tests/gcm/independence_test/test_generalised_cov_measure.py
imports: import random
  import numpy
  import pytest
  from flaky import flaky
  from dowhy.gcm import generalised_cov_based
  from tests.gcm.independence_test.test_kernel import _generate_categorical_data
label_desc: Use image node_id 5 for calling a global function with example usage: test_given_dependent_categorical_Z_data_when_perform_generalised_cov_based_independence_test_then_returns_expected_result() without return types