code: def capture_tagged(state):
      next_pos = state.find(")")
      if next_pos < 1:
          raise IntentFormatError(
              "Missing ending ')' in annotated utterance \"%s\""
              % state.input
          )
      else:
          tagged_text = state[:next_pos]
          state.add_tagged(tagged_text)
          state.move(next_pos)
          capture_text(state)
  
imports: from __future__ import absolute_import, print_function, unicode_literals
  from abc import ABCMeta, abstractmethod
  from builtins import object
  from io import IOBase
  from future.utils import with_metaclass
  from snips_nlu.constants import DATA, ENTITY, SLOT_NAME, TEXT, UTTERANCES
  from snips_nlu.exceptions import IntentFormatError
label_desc: Use image node_id 3 for calling a global function with example usage: capture_tagged(state) without return types