code: def fix_arg(subdirectory: str, arg: str) -> str:
      arg_path = Path(arg)
      if not (
          arg_path.exists() and is_relative_to(arg_path, subdirectory)
      ):
          return arg
      return str(arg_path.relative_to(subdirectory))
  
file_path: streamlit/scripts/run_in_subdirectory.py
imports: import subprocess
  import sys
  import textwrap
  from pathlib import Path
  from typing import List, Tuple
label_desc: Use image node_id 4 for calling a global function with example usage: fix_arg(subdirectory, arg) and returns: str, arg