code: def rename_subpackage_toc(subpackage: str, toc: Dict):
      """
      Extends table of contents sections with the subpackage name as the parent folder.
  
      Args:
          subpackage (str): subpackage name.
          toc (Dict): table of contents.
      """
      for item in toc:
          for file in item["sections"]:
              if "local" in file:
                  file["local"] = f"{subpackage}/" + file["local"]
              else:
                  # if "local" is not in file, it means we have a subsection, hence the recursive call
                  rename_subpackage_toc(subpackage, [file])
  
file_path: optimum/docs/combine_docs.py
imports: import argparse
  import shutil
  from pathlib import Path
  from typing import Dict, List
  import yaml
label_desc: Use image node_id 1 for calling a global function with example usage: rename_subpackage_toc(subpackage, toc) without return types