code: def test_should_raise_when_missing_bracket_in_utterance(self):
      # Given
      intent_io = io.StringIO(
          """
  # getWeather Intent
  ---
  type: intent
  name: getWeather
  utterances:
    - what is the weather in [location] ?
    - give me the weather forecast in [location tomorrow please
    - what's the weather in [location] this weekend ?
          """
      )
  
      # When / Then
      with self.assertRaises(IntentFormatError) as cm:
          Intent.from_yaml(intent_io)
  
      faulty_utterance = (
          "give me the weather forecast in [location " "tomorrow please"
      )
  
      self.assertTrue(faulty_utterance in str(cm.exception))
  
file_path: snips-nlu/snips_nlu/tests/test_intent_loading.py
imports: from __future__ import unicode_literals
  import io
  from unittest import TestCase
  from snips_nlu.dataset import Intent
  from snips_nlu.exceptions import IntentFormatError
label_desc: Use image node_id 4 for calling the TestIntentLoading obj's underlying member method code with example usage: obj.test_should_raise_when_missing_bracket_in_utterance() without return types