code: def test_cooccurrence_vectorizer_should_load(self):
      # Given
      config = CooccurrenceVectorizerConfig()
  
      word_pairs = {("a", "b"): 0, ("a", "c"): 12}
  
      serializable_word_pairs = {0: ["a", "b"], 12: ["a", "c"]}
  
      vectorizer_dict = {
          "unit_name": "cooccurrence_vectorizer",
          "language_code": "en",
          "word_pairs": serializable_word_pairs,
          "builtin_entity_scope": ["snips/datetime"],
          "config": config.to_dict(),
      }
  
      self.tmp_file_path.mkdir()
      self.writeJsonContent(
          self.tmp_file_path / "vectorizer.json", vectorizer_dict
      )
  
      # When
      vectorizer = CooccurrenceVectorizer.from_path(self.tmp_file_path)
  
      # Then
      self.assertDictEqual(
          config.to_dict(), vectorizer.config.to_dict()
      )
      self.assertEqual("en", vectorizer.language)
      self.assertDictEqual(vectorizer.word_pairs, word_pairs)
      self.assertEqual(
          {"snips/datetime"}, vectorizer.builtin_entity_scope
      )
  
imports: from __future__ import unicode_literals
  import io
  from builtins import str, zip, range
  import numpy
  from checksumdir import dirhash
  from mock import patch, MagicMock
  from snips_nlu.common.io_utils import temp_dir
  from snips_nlu.common.utils import json_string
  from snips_nlu.constants import LANGUAGE_EN, STEMS, WORD_CLUSTERS, STOP_WORDS
  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 _EmptyDatasetUtterancesError
  from snips_nlu.intent_classifier.featurizer import CooccurrenceVectorizer, Featurizer, TfidfVectorizer
  from snips_nlu.intent_classifier.log_reg_classifier_utils import text_to_utterance
  from snips_nlu.pipeline.configs import FeaturizerConfig
  from snips_nlu.pipeline.configs.intent_classifier import CooccurrenceVectorizerConfig, TfidfVectorizerConfig
  from snips_nlu.tests.utils import FixtureTest, get_empty_dataset, EntityParserMock
label_desc: Use image node_id 2 for calling the CooccurrenceVectorizerTest obj's underlying member method code with example usage: obj.test_cooccurrence_vectorizer_should_load() without return types