code: def rename_copy_subpackage_html_paths(
      subpackage: str,
      subpackage_path: Path,
      optimum_path: Path,
      version: str,
  ):
      """
      Copy and rename the files from the given subpackage's documentation to Optimum's documentation.
      In Optimum's documentation, the subpackage files are organized as follows:
  
      optimum_doc
          ├──────── subpackage_1
          │               ├────── folder_1
          │               │          └───── ...
          │               ├────── ...
          │               └────── folder_x
          │                          └───── ...
          ├──────── ...
          ├──────── subpackage_n
          │               ├────── folder_1
          │               │          └───── ...
          │               ├────── ...
          │               └────── folder_y
          │                          └───── ...
          └──────── usual_optimum_doc
  
      Args:
          subpackage (str): subpackage name
          subpackage_path (Path): path to the subpackage's documentation
          optimum_path (Path): path to Optimum's documentation
          version (str): Optimum's version
      """
      subpackage_html_paths = list(subpackage_path.rglob("*.html"))
      # The language folder is the 4th folder in the subpackage HTML paths
      language_folder_level = 3
  
      for html_path in subpackage_html_paths:
          language_folder = html_path.parts[language_folder_level]
          # Build the relative path from the language folder
          relative_path_from_language_folder = Path(
              *html_path.parts[language_folder_level + 1 :]
          )
          # New path in Optimum's doc
          new_path_in_optimum = Path(
              f"{optimum_path}/optimum/{version}/{language_folder}/{subpackage}/{relative_path_from_language_folder}"
          )
          # Build the parent folders if necessary
          new_path_in_optimum.parent.mkdir(parents=True, exist_ok=True)
  
          shutil.copyfile(html_path, new_path_in_optimum)
  
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 2 for calling a global function with example usage: rename_copy_subpackage_html_paths(subpackage, subpackage_path, optimum_path, version) without return types