code: def test_should_be_serializable_into_bytearray(self):
      # Given
      dataset_stream = io.StringIO(
          """
  ---
  type: intent
  name: MakeTea
  utterances:
  - make me [number_of_cups:snips/number](one) cup of tea
  - i want [number_of_cups] cups of tea please
  - can you prepare [number_of_cups] cup of tea ?
  
  ---
  type: intent
  name: MakeCoffee
  utterances:
  - make me [number_of_cups:snips/number](two) cups of coffee
  - brew [number_of_cups] cups of coffee
  - can you prepare [number_of_cups] cup of coffee"""
      )
      dataset = Dataset.from_yaml_files("en", [dataset_stream]).json
      shared = self.get_shared_data(dataset)
      intent_parser = DeterministicIntentParser(**shared).fit(dataset)
  
      # When
      intent_parser_bytes = intent_parser.to_byte_array()
      loaded_intent_parser = DeterministicIntentParser.from_byte_array(
          intent_parser_bytes, **shared
      )
      result = loaded_intent_parser.parse("make me two cups of coffee")
  
      # Then
      self.assertEqual(
          "MakeCoffee", result[RES_INTENT][RES_INTENT_NAME]
      )
  
imports: from __future__ import unicode_literals
  import io
  from builtins import range
  from copy import deepcopy
  from checksumdir import dirhash
  from mock import patch
  from snips_nlu.common.io_utils import temp_dir
  from snips_nlu.constants import DATA, END, ENTITY, LANGUAGE_EN, RES_ENTITY, RES_INTENT, RES_INTENT_NAME, RES_PROBA, RES_SLOTS, RES_VALUE, SLOT_NAME, START, TEXT, STOP_WORDS
  from snips_nlu.dataset import Dataset
  from snips_nlu.exceptions import IntentNotFoundError, NotTrained
  from snips_nlu.intent_parser.deterministic_intent_parser import DeterministicIntentParser, _deduplicate_overlapping_slots, _get_range_shift
  from snips_nlu.pipeline.configs import DeterministicIntentParserConfig
  from snips_nlu.result import extraction_result, intent_classification_result, unresolved_slot, empty_result, parsing_result
  from snips_nlu.tests.utils import FixtureTest, TEST_PATH
label_desc: Use image node_id 19 for calling the TestDeterministicIntentParser obj's underlying member method code with example usage: obj.test_should_be_serializable_into_bytearray() without return types