code: def get_titles(language):
      """
      Parse the _toctree.yml file to get the correspondence filename to title
      """
      table = yaml.safe_load(
          open(
              os.path.join(f"chapters/{language}", "_toctree.yml"), "r"
          )
      )
      result = {}
      for entry in table:
          for section in entry["sections"]:
              section_title = section["title"]
              if "local_fw" in section:
                  section_names = section["local_fw"]
                  result[section_names["pt"]] = section_title
                  result[section_names["tf"]] = section_title
              else:
                  section_name = section["local"]
                  result[section_name] = section_title
      return {k: v for k, v in result.items() if "quiz" not in v}
  
file_path: course/utils/generate_notebooks.py
imports: import argparse
  import os
  import re
  import nbformat
  import shutil
  import yaml
  from pathlib import Path
label_desc: Use image node_id 6 for calling a global function with example usage: get_titles(language) and returns: unknown