code: def setup(app):
      import pathlib
  
      from m2r import convert
      import typing
      import shutil
  
      typing.TYPE_CHECKING = True
  
      docs_path = pathlib.Path(__file__).parent
      original_readme = os.path.join(docs_path.parent, "README.md")
      rst_readme = os.path.join(docs_path, "README.rst")
  
      # Copy Examples to docs folder for rendering
      original_examples_folder = os.path.join(
          docs_path.parent, "examples"
      )
      target_examples_folder = os.path.join(docs_path, "examples")
      shutil.rmtree(target_examples_folder, ignore_errors=True)
  
      shutil.copytree(
          original_examples_folder,
          target_examples_folder,
          symlinks=True,
      )
  
      # Change readme to rst file, and include in Sphinx index
      with open(rst_readme, "w") as f:
          md_content = open(original_readme, "r").read()
          md_content = md_content.replace("(./docs/", "(../")
          md_content = md_content.replace(
              "(./examples/",
              "(https://github.com/BrikerMan/Kashgari/blob/v2-trunk/examples/",
          )
          md_content = md_content.replace("index.md)", ")")
          md_content = md_content.replace(".md)", ")")
          f.write(convert(md_content))
          print(f"Saved RST file to {rst_readme}")
  
      # Update all .md files， for fixing links
      update_markdown_content(docs_path)
  
      app.add_css_file("css/modify.css")
      app.add_css_file("css/extra.css")
  
      app.config["set_type_checking_flag"] = True
      app.connect("autodoc-skip-member", skip_some_classes_members)
  
imports: import os
  import sys
  import kashgari
label_desc: Use image node_id 3 for calling a global function with example usage: setup(app) without return types