docstr: Find a data sample with the same intent.
docstr_tok: ["Find","a","data","sample","with","the","same","intent","."]
code: def message_for_data(self, structured_info: Dict[Text, Any]) -> Any:
      """Find a data sample with the same intent."""
      if structured_info.get(INTENT) is not None:
          intent_name = structured_info.get(INTENT, {}).get(
              INTENT_NAME_KEY
          )
          usable_examples = self.mapping.get(intent_name, [])[:]
          random.shuffle(usable_examples)
  
          if usable_examples:
              return usable_examples[0].get(TEXT)
  
      return structured_info.get(TEXT)
  
imports: from collections import defaultdict, deque
  import random
  from typing import Any, Text, List, Deque, Dict, Optional, Set, TYPE_CHECKING, Union, cast
  import rasa.shared.utils.io
  from rasa.shared.constants import INTENT_MESSAGE_PREFIX
  from rasa.shared.core.constants import ACTION_LISTEN_NAME
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import UserUttered, ActionExecuted, Event
  from rasa.shared.core.generator import TrainingDataGenerator
  from rasa.shared.core.training_data.structures import StoryGraph, StoryStep
  from rasa.shared.nlu.constants import ENTITY_ATTRIBUTE_VALUE, INTENT, TEXT, ENTITY_ATTRIBUTE_TYPE, INTENT_NAME_KEY
label_desc: Use image node_id 4 for calling the UserMessageGenerator obj's underlying member method code with example usage: obj.message_for_data(structured_info) and returns: structured_info, usable_examples