code: def main():
      """Main function"""
      print("Generating PythonAPI snipets...")
      script_path = os.path.dirname(
          os.path.abspath(__file__) + "/snipets"
      )
      snipets_images_path = (
          os.path.dirname(
              os.path.dirname(
                  os.path.dirname(os.path.abspath(__file__))
              )
          )
          + "/Docs/img/snipets_images"
      )
      docs = Documentation(script_path, snipets_images_path)
      snipets_md_path = os.path.join(
          os.path.dirname(
              os.path.dirname(os.path.dirname(script_path))
          ),
          "Docs/python_api_snipets.md",
      )
      with open(snipets_md_path, "w") as md_file:
          md_file.write(docs.gen_markdown())
      print("Done snipets!")
  
file_path: carla/PythonAPI/docs/doc_gen_snipets.py
imports: import os
  import yaml
  import re
label_desc: Use image node_id 4 for calling a global function with example usage: main() without return types