docstr: Test log_conditional_probability()
docstr_tok: ["Test","log_conditional_probability","(",")"]
code: def test_log_conditional_probability(self):
      """Test log_conditional_probability()"""
      obtained = (
          direct_confirmation_measure.log_conditional_probability(
              self.segmentation, self.accumulator
          )[0]
      )
      # Answer should be ~ ln(1 / 2) = -0.693147181
      expected = -0.693147181
      self.assertAlmostEqual(expected, obtained)
  
      (
          mean,
          std,
      ) = direct_confirmation_measure.log_conditional_probability(
          self.segmentation, self.accumulator, with_std=True
      )[
          0
      ]
      self.assertAlmostEqual(expected, mean)
      self.assertEqual(0.0, std)
  
file_path: gensim/gensim/test/test_direct_confirmation.py
imports: import logging
  import unittest
  from collections import namedtuple
  from gensim.topic_coherence import direct_confirmation_measure
  from gensim.topic_coherence import text_analysis
label_desc: Use image node_id 2 for calling the TestDirectConfirmationMeasure obj's underlying member method code with example usage: obj.test_log_conditional_probability() without return types