code: def test_ks_prob():
      np.testing.assert_equal(ks_prob(0.1), 1)
      np.testing.assert_equal(ks_prob(10.0), np.nan)
      np.testing.assert_equal(ks_prob(0.4), ks_prob(-0.4))
      np.testing.assert_almost_equal(ks_prob(0.8), 0.5441, 4)
      np.testing.assert_almost_equal(ks_prob(3.0), 0.0, 4)
  
file_path: popmon/tests/popmon/analysis/comparison/test_comparisons.py
imports: import numpy
  import pytest
  from popmon.analysis.comparison.comparisons import jensen_shannon_divergence, ks_prob, ks_test, kullback_leibler_divergence, population_stability_index, uu_chi2
label_desc: Use image node_id 3 for calling a global function with example usage: test_ks_prob() without return types