code: def test_add_diagnostic_data_with_repeated_component_raises_warning():
      message = Message()
      message.add_diagnostic_data("a", {})
      with pytest.warns(UserWarning):
          message.add_diagnostic_data("a", {})
  
file_path: rasa/tests/shared/nlu/training_data/test_message.py
imports: from typing import Optional, Text, List
  import pytest
  import numpy
  import scipy.sparse
  from rasa.shared.nlu.training_data.features import Features
  from rasa.shared.nlu.constants import TEXT, FEATURE_TYPE_SENTENCE, FEATURE_TYPE_SEQUENCE, ACTION_TEXT, ACTION_NAME, INTENT, RESPONSE
  from rasa.shared.nlu.training_data.message import Message
  from rasa.nlu.tokenizers.whitespace_tokenizer import WhitespaceTokenizer
label_desc: Use image node_id 6 for calling a global function with example usage: test_add_diagnostic_data_with_repeated_component_raises_warning() without return types