code: def build_lang(
      lang: str = typer.Argument(
          ...,
          callback=lang_callback,
          autocompletion=complete_existing_lang,
      ),
  ) -> None:
      """
      Build the docs for a language.
      """
      insiders_env_file = os.environ.get("INSIDERS_FILE")
      print(f"Insiders file {insiders_env_file}")
      if is_mkdocs_insiders():
          print("Using insiders")
      lang_path: Path = Path("docs") / lang
      if not lang_path.is_dir():
          typer.echo(
              f"The language translation doesn't seem to exist yet: {lang}"
          )
          raise typer.Abort()
      typer.echo(f"Building docs for: {lang}")
      build_site_dist_path = build_site_path / lang
      if lang == "en":
          dist_path = site_path
          # Don't remove en dist_path as it might already contain other languages.
          # When running build_all(), that function already removes site_path.
          # All this is only relevant locally, on GitHub Actions all this is done through
          # artifacts and multiple workflows, so it doesn't matter if directories are
          # removed or not.
      else:
          dist_path = site_path / lang
          shutil.rmtree(dist_path, ignore_errors=True)
      current_dir = os.getcwd()
      os.chdir(lang_path)
      shutil.rmtree(build_site_dist_path, ignore_errors=True)
      subprocess.run(
          ["mkdocs", "build", "--site-dir", build_site_dist_path],
          check=True,
      )
      shutil.copytree(
          build_site_dist_path, dist_path, dirs_exist_ok=True
      )
      os.chdir(current_dir)
      typer.secho(
          f"Successfully built docs for: {lang}",
          color=typer.colors.GREEN,
      )
  
imports: import json
  import logging
  import os
  import re
  import shutil
  import subprocess
  from functools import lru_cache
  from http.server import HTTPServer, SimpleHTTPRequestHandler
  from importlib import metadata
  from multiprocessing import Pool
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  import mkdocs.commands.build
  import mkdocs.commands.serve
  import mkdocs.config
  import mkdocs.utils
  import typer
  import yaml
  from jinja2 import Template
label_desc: Use image node_id 8 for calling a global function with example usage: build_lang(lang) without return types