code: def test_training_data_conversion(
      tmpdir, data_file, gold_standard_file, output_format, language
  ):
      out_path = tmpdir.join("rasa_nlu_data.json")
      convert_training_data(
          data_file, out_path.strpath, output_format, language
      )
      td = load_data(out_path.strpath, language)
      assert td.entity_examples != []
      assert td.intent_examples != []
  
      gold_standard = load_data(gold_standard_file, language)
      cmp_message_list(
          td.entity_examples, gold_standard.entity_examples
      )
      cmp_message_list(
          td.intent_examples, gold_standard.intent_examples
      )
      assert td.entity_synonyms == gold_standard.entity_synonyms
      assert td.entity_roles == gold_standard.entity_roles
  
      # converting the converted file back to original
      # file format and performing the same tests
      rto_path = tmpdir.join("data_in_original_format.txt")
      convert_training_data(
          out_path.strpath, rto_path.strpath, "json", language
      )
      rto = load_data(rto_path.strpath, language)
      cmp_message_list(
          gold_standard.entity_examples, rto.entity_examples
      )
      cmp_message_list(
          gold_standard.intent_examples, rto.intent_examples
      )
      assert gold_standard.entity_synonyms == rto.entity_synonyms
  
imports: from pathlib import Path
  from typing import Text, List, Dict, Any
  from unittest.mock import Mock
  from _pytest.monkeypatch import MonkeyPatch
  import pytest
  import numpy
  import rasa.shared.utils.io
  from rasa.shared.core.constants import USER_INTENT_OUT_OF_SCOPE
  from rasa.shared.nlu.constants import TEXT, INTENT_RESPONSE_KEY, ENTITY_ATTRIBUTE_START, ENTITY_ATTRIBUTE_END, ENTITY_ATTRIBUTE_VALUE, ENTITY_ATTRIBUTE_TYPE, ENTITIES, INTENT, ACTION_NAME, FEATURE_TYPE_SENTENCE
  from rasa.nlu.convert import convert_training_data
  from rasa.nlu.extractors.mitie_entity_extractor import MitieEntityExtractor
  from rasa.nlu.tokenizers.whitespace_tokenizer import WhitespaceTokenizer
  from rasa.shared.nlu.training_data.features import Features
  from rasa.shared.nlu.training_data.message import Message
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.shared.nlu.training_data.loading import guess_format, UNK, load_data
  from rasa.shared.nlu.training_data.util import get_file_format_extension, template_key_to_intent_response_key, intent_response_key_to_template_key
  import rasa.shared.data
  from rasa.shared.core.domain import Domain
  from rasa.shared.core.events import UserUttered, ActionExecuted
  from rasa.shared.core.training_data.structures import StoryGraph, StoryStep
  from rasa.shared.importers.importer import TrainingDataImporter, E2EImporter
label_desc: Use image node_id 23 for calling a global function with example usage: test_training_data_conversion(tmpdir, data_file, gold_standard_file, output_format, language) without return types