code: def get_container_cwd():
      cwd_path = Path(os.getcwd())
      if not is_relative_to(cwd_path, ROOT_DIR):
          print(
              textwrap.dedent(
                  "You must be in your repository directory to run this command.\n"
                  "To go to the repository, run command:\n"
                  f"    cd {str(ROOT_DIR)}"
              ),
              file=sys.stderr,
          )
          sys.exit(1)
      return str(IN_CONTAINER_HOME / cwd_path.relative_to(ROOT_DIR))
  
file_path: streamlit/e2e/run_compose.py
imports: import os
  import subprocess
  import sys
  import textwrap
  from pathlib import Path
  from typing import List
label_desc: Use image node_id 4 for calling a global function with example usage: get_container_cwd() and returns: str