code: def test_data_convert_nlu_json(
      run_in_simple_project: Callable[..., RunResult]
  ):
      result = run_in_simple_project(
          "data",
          "convert",
          "nlu",
          "--data",
          "data/nlu.yml",
          "--out",
          "out_nlu_data.json",
          "-f",
          "json",
      )
  
      assert "NLU data in Rasa JSON format is deprecated" in str(
          result.stderr
      )
      assert os.path.exists("out_nlu_data.json")
  
file_path: rasa/tests/cli/test_rasa_data.py
imports: import os
  from pathlib import Path
  from typing import Callable
  from _pytest.fixtures import FixtureRequest
  from _pytest.pytester import RunResult
  from rasa.shared.nlu.training_data.formats import RasaYAMLReader
  import rasa.shared.utils.io
  from tests.cli.conftest import RASA_EXE
label_desc: Use image node_id 2 for calling a global function with example usage: test_data_convert_nlu_json(run_in_simple_project) without return types