code: def test_utterance_to_sample(self, mocked_positive_tagging):
      # Given
      language = LANGUAGE_EN
  
      def mock_positive_tagging(_, slot, slot_size):
          return [INSIDE_PREFIX + slot for _ in range(slot_size)]
  
      mocked_positive_tagging.side_effect = mock_positive_tagging
      slot_name = "animal"
      query_data = [
          {"text": "i am a "},
          {"text": "beautiful bird", "slot_name": slot_name},
      ]
      expected_tagging = [
          OUTSIDE,
          OUTSIDE,
          OUTSIDE,
          INSIDE_PREFIX + slot_name,
          INSIDE_PREFIX + slot_name,
      ]
      expected_tokens = [
          Token(value="i", start=0, end=1),
          Token(value="am", start=2, end=4),
          Token(value="a", start=5, end=6),
          Token(value="beautiful", start=7, end=16),
          Token(value="bird", start=17, end=21),
      ]
      expected_sample = {
          "tokens": expected_tokens,
          "tags": expected_tagging,
      }
  
      # When
      sample = utterance_to_sample(
          query_data, TaggingScheme.IO, language
      )
  
      # Then
      self.assertEqual(sample, expected_sample)
  
imports: from __future__ import unicode_literals
  from builtins import range
  from mock import patch
  from snips_nlu.constants import LANGUAGE_EN
  from snips_nlu.preprocessing import Token, tokenize
  from snips_nlu.result import unresolved_slot
  from snips_nlu.slot_filler.crf_utils import BEGINNING_PREFIX, INSIDE_PREFIX, LAST_PREFIX, OUTSIDE, TaggingScheme, UNIT_PREFIX, end_of_bilou_slot, end_of_bio_slot, negative_tagging, positive_tagging, start_of_bilou_slot, start_of_bio_slot, tags_to_slots, utterance_to_sample
  from snips_nlu.tests.utils import SnipsTest
label_desc: Use image node_id 5 for calling the TestCRFUtils obj's underlying member method code with example usage: obj.test_utterance_to_sample(mocked_positive_tagging) and returns: unknown