code: def test_given_valid_and_invalid_probability_vectors_when_apply_is_probabilities_then_return_expected_results():
      assert is_probability_matrix(np.array([0.5, 0.3, 0.2]))
      assert not is_probability_matrix(np.array([0.1, 0.3, 0.2]))
      assert is_probability_matrix(
          np.array([[0.5, 0.3, 0.2], [0.1, 0.2, 0.7]])
      )
      assert not is_probability_matrix(np.random.normal(0, 1, (5, 3)))
  
file_path: dowhy/tests/gcm/test_divergence.py
imports: import numpy
  from flaky import flaky
  from pytest import approx
  from dowhy.gcm.divergence import auto_estimate_kl_divergence, estimate_kl_divergence_categorical, estimate_kl_divergence_continuous_clf, estimate_kl_divergence_continuous_knn, estimate_kl_divergence_of_probabilities, is_probability_matrix
label_desc: Use image node_id 7 for calling a global function with example usage: test_given_valid_and_invalid_probability_vectors_when_apply_is_probabilities_then_return_expected_results() without return types