code: def main() -> None:
      pyproject = toml.loads((repo_dir / "pyproject.toml").read_text())
  
      generate_requirement_file(
          "default", pyproject["project"]["dependencies"]
      )
  
      for key, opt_list in pyproject["project"][
          "optional-dependencies"
      ].items():
          generate_requirement_file(key, opt_list)
  
imports: import sys
  from pathlib import Path
label_desc: Use image node_id 2 for calling a global function with example usage: main() without return types