code: def _install_with_env(
      repo_url: str, folder_name: str, cwd: Optional[str] = None
  ) -> None:
      if not cwd:
          cwd = os.getcwd()
  
      # clone repo
      logger.info(f"⚡ RUN: git clone {repo_url}")
      subprocess.call(["git", "clone", repo_url])
  
      # step into the repo folder
      os.chdir(f"{folder_name}")
      cwd = os.getcwd()
  
      # create env
      logger.info(f"⚡ CREATE: virtual env at {cwd}")
      subprocess.call(["python", "-m", "venv", cwd])
  
      # activate and install reqs
      # TODO: remove shell=True... but need to run command in venv
      logger.info(
          "⚡ RUN: install requirements (pip install -r requirements.txt)"
      )
      subprocess.call(
          "source bin/activate && pip install -r requirements.txt",
          shell=True,
      )
  
      # install project
      # TODO: remove shell=True... but need to run command in venv
      logger.info("⚡ RUN: setting up project (pip install -e .)")
      subprocess.call(
          "source bin/activate && pip install -e .", shell=True
      )
  
      m = f"""
      ⚡ Installed! ⚡ to use your app
          go into the folder: cd {folder_name}
      activate the environment: source bin/activate
                  run the app: lightning run app [the_app_file.py]
      """
      logger.info(m)
  
imports: import os
  import re
  import shutil
  import subprocess
  import sys
  from typing import Dict, Optional, Tuple
  import click
  import requests
  from packaging.version import Version
  from lightning.app.core.constants import LIGHTNING_APPS_PUBLIC_REGISTRY, LIGHTNING_COMPONENT_PUBLIC_REGISTRY
  from lightning.app.utilities.app_helpers import Logger
label_desc: Use image node_id 18 for calling a global function with example usage: _install_with_env(repo_url, folder_name, cwd) without return types