code: def test_fallback_template_app(tmp_path):
      _create(
          "SimpleComponent2",
          directory=tmp_path,
          overwrite=True,
          install=False,
          configure_metadata=False,
      )
      app = (tmp_path / "demo" / "app.py").read_text()
      answer = textwrap.dedent(
          """
  
  import gradio as gr
  from gradio_simplecomponent2 import SimpleComponent2
  
  
  with gr.Blocks() as demo:
      gr.Markdown("# Change the value (keep it JSON) and the front-end will update automatically.")
      SimpleComponent2(value={"message": "Hello from Gradio!"}, label="Static")
  
  
  demo.launch()
  
  """
      )
      assert app.strip() == answer.strip()
  
file_path: gradio/test/test_gradio_component_cli.py
imports: import shutil
  import textwrap
  from pathlib import Path
  import pytest
  from gradio.cli.commands.components._create_utils import OVERRIDES
  from gradio.cli.commands.components.create import _create
  from gradio.cli.commands.components.publish import _get_version_from_file
  from gradio.cli.commands.components.show import _show
label_desc: Use image node_id 7 for calling a global function with example usage: test_fallback_template_app(tmp_path) without return types