code: def test_correct_num_react_template_files():
      template_dir = os.path.join(
          la.__path__[0], "cli/react-ui-template"
      )
      files = cmd_init._ls_recursively(template_dir)
      # TODO: remove lock file!!!
      assert (
          len(files) == 16
      ), "react-ui template files must be minimal... do not add nice to haves"
  
file_path: pytorch-lightning/tests/tests_app/cli/test_cmd_react_ui_init.py
imports: import os
  import lightning.app
  import pytest
  from lightning.app.cli import cmd_init, cmd_react_ui_init
  from lightning.app.testing.helpers import _RunIf
label_desc: Use image node_id 5 for calling a global function with example usage: test_correct_num_react_template_files() without return types