code: def app(app_name: str) -> None:
      if app_name is None:
          app_name = _capture_valid_app_component_name(
              resource_type="app"
          )
  
      # generate resource template
      new_resource_name, _ = _make_resource(
          resource_dir="app-template", resource_name=app_name
      )
  
      m = f"""
      ⚡ Lightning app template created! ⚡
      {new_resource_name}
  
      run your app with:
          lightning run app {app_name}/app.py
  
      run it on the cloud to share with your collaborators:
          lightning run app {app_name}/app.py --cloud
      """
      logger.info(m)
  
file_path: pytorch-lightning/src/lightning/app/cli/cmd_init.py
imports: import os
  import re
  import shutil
  from typing import List, Optional, Tuple
  from lightning.app.utilities.app_helpers import Logger
label_desc: Use image node_id 1 for calling a global function with example usage: app(app_name) without return types