docstr: Check provided topic coherence algorithm on given topics
docstr_tok: ["Check","provided","topic","coherence","algorithm","on","given","topics"]
code: def check_coherence_measure(self, coherence):
      """Check provided topic coherence algorithm on given topics"""
      if coherence in BOOLEAN_DOCUMENT_BASED:
          kwargs = dict(
              corpus=self.corpus,
              dictionary=self.dictionary,
              coherence=coherence,
          )
      else:
          kwargs = dict(
              texts=self.texts,
              dictionary=self.dictionary,
              coherence=coherence,
          )
  
      cm1 = CoherenceModel(topics=self.topics1, **kwargs)
      cm2 = CoherenceModel(topics=self.topics2, **kwargs)
      cm3 = CoherenceModel(topics=self.topics3, **kwargs)
      cm4 = CoherenceModel(topics=self.topicIds1, **kwargs)
  
      # check if the same topic always returns the same coherence value
      cm5 = CoherenceModel(topics=[self.topics1[0]], **kwargs)
  
      self.assertRaises(
          ValueError,
          lambda: CoherenceModel(topics=self.topics4, **kwargs),
      )
      self.assertRaises(
          ValueError,
          lambda: CoherenceModel(topics=self.topics5, **kwargs),
      )
      self.assertEqual(cm1.get_coherence(), cm4.get_coherence())
      self.assertEqual(
          cm1.get_coherence_per_topic()[0], cm5.get_coherence()
      )
      self.assertIsInstance(cm3.get_coherence(), np.double)
      self.assertGreater(cm1.get_coherence(), cm2.get_coherence())
  
imports: import logging
  import unittest
  import multiprocessing
  from functools import partial
  import numpy
  from gensim.matutils import argsort
  from gensim.models.coherencemodel import CoherenceModel, BOOLEAN_DOCUMENT_BASED
  from gensim.models.ldamodel import LdaModel
  from gensim.test.utils import get_tmpfile, common_texts, common_dictionary, common_corpus
label_desc: Use image node_id 2 for calling the TestCoherenceModel obj's underlying member method code with example usage: obj.check_coherence_measure(coherence) without return types