code: def test_is_nlu_file_with_json():
      test = {
          "rasa_nlu_data": {
              "lookup_tables": [
                  {
                      "name": "plates",
                      "elements": ["beans", "rice", "tacos", "cheese"],
                  }
              ]
          }
      }
  
      directory = tempfile.mkdtemp()
      file = os.path.join(directory, "test.json")
  
      write_text_file(json_to_string(test), file)
  
      assert rasa.shared.data.is_nlu_file(file)
  
file_path: rasa/tests/shared/test_data.py
imports: import os
  import tempfile
  from pathlib import Path
  import pytest
  import rasa.shared
  import rasa.shared.data
  from rasa.shared.nlu.training_data.loading import load_data
  from rasa.shared.utils.io import write_text_file, json_to_string
  from rasa.shared.core.training_data.story_reader.yaml_story_reader import YAMLStoryReader
label_desc: Use image node_id 8 for calling a global function with example usage: test_is_nlu_file_with_json() without return types