code: def test_word_cluster_factory(self):
      # Given
      resources = {
          WORD_CLUSTERS: {
              "my_word_clusters": {"word1": "00", "word2": "11"}
          }
      }
  
      config = {
          "factory_name": "word_cluster",
          "args": {
              "cluster_name": "my_word_clusters",
              "use_stemming": False,
          },
          "offsets": [0],
      }
  
      tokens = tokenize("hello word1 word2", LANGUAGE_EN)
      cache = [{TOKEN_NAME: token} for token in tokens]
      factory = CRFFeatureFactory.from_config(
          config, resources=resources
      )
      mocked_dataset = {"language": "en"}
      factory.fit(mocked_dataset, None)
      features = factory.build_features()
  
      # When
      res0 = features[0].compute(0, cache)
      res1 = features[0].compute(1, cache)
      res2 = features[0].compute(2, cache)
  
      # Then
      self.assertIsInstance(factory, WordClusterFactory)
      self.assertEqual(
          features[0].base_name, "word_cluster_my_word_clusters"
      )
      self.assertEqual(res0, None)
      self.assertEqual(res1, "00")
      self.assertEqual(res2, "11")
  
imports: from __future__ import unicode_literals
  import io
  from mock import MagicMock
  from snips_nlu.constants import LANGUAGE, LANGUAGE_EN, SNIPS_DATETIME, SNIPS_NUMBER, STEMS, GAZETTEERS, WORD_CLUSTERS
  from snips_nlu.dataset import Dataset
  from snips_nlu.entity_parser import BuiltinEntityParser, CustomEntityParser
  from snips_nlu.entity_parser.custom_entity_parser_usage import CustomEntityParserUsage
  from snips_nlu.exceptions import NotRegisteredError
  from snips_nlu.preprocessing import tokenize
  from snips_nlu.slot_filler.crf_utils import BEGINNING_PREFIX, INSIDE_PREFIX, LAST_PREFIX, TaggingScheme, UNIT_PREFIX
  from snips_nlu.slot_filler.feature import Feature, TOKEN_NAME
  from snips_nlu.slot_filler.feature_factory import BuiltinEntityMatchFactory, CustomEntityMatchFactory, IsDigitFactory, IsFirstFactory, IsLastFactory, LengthFactory, NgramFactory, PrefixFactory, ShapeNgramFactory, SingleFeatureFactory, SuffixFactory, WordClusterFactory, CRFFeatureFactory
  from snips_nlu.tests.utils import SnipsTest
label_desc: Use image node_id 15 for calling the TestCRFFeatures obj's underlying member method code with example usage: obj.test_word_cluster_factory() without return types