code: def component(component_name: str) -> None:
      if component_name is None:
          component_name = _capture_valid_app_component_name(
              resource_type="component"
          )
  
      # generate resource template
      new_resource_name, name_for_files = _make_resource(
          resource_dir="component-template",
          resource_name=component_name,
      )
  
      m = f"""
      ⚡ Lightning component template created! ⚡
      {new_resource_name}
  
      ⚡ To use your component, first pip install it (with these 3 commands): ⚡
      cd {component_name}
      pip install -r requirements.txt
      pip install -e .
  
      ⚡ Use the component inside an app: ⚡
  
      from {name_for_files} import TemplateComponent
      import lightning.app as la
  
      class LitApp(la.LightningFlow):
          def __init__(self) -> None:
              super().__init__()
              self.{name_for_files} = TemplateComponent()
  
          def run(self):
              print('this is a simple Lightning app to verify your component is working as expected')
              self.{name_for_files}.run()
  
      app = la.LightningApp(LitApp())
  
      ⚡ Checkout the demo app with your {component_name} component: ⚡
      lightning run app {component_name}/app.py
  
      ⚡ Tip: Publish your component to the Lightning Gallery to enable users to install it like so:
      lightning install component YourLightningUserName/{component_name}
  
      so the Lightning community can use it like:
      from {name_for_files} import TemplateComponent
  
      """
      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 5 for calling a global function with example usage: component(component_name) without return types