code: def build_and_install_draco():
      """Builds Draco in shared and static configurations."""
      orig_dir = os.getcwd()
  
      if ENABLE_TRANSCODER:
          build_and_install_transcoder_dependencies()
  
      # Build and install Draco in shared library config for the current host
      # machine.
      os.chdir(DRACO_SHARED_BUILD_PATH)
      cmake_args = []
      cmake_args.append(
          f"-DCMAKE_INSTALL_PREFIX={DRACO_SHARED_INSTALL_PATH}"
      )
      cmake_args.append("-DBUILD_SHARED_LIBS=ON")
      if ENABLE_TRANSCODER:
          cmake_args.append("-DDRACO_TRANSCODER_SUPPORTED=ON")
      cmake_configure(
          source_path=DRACO_SOURCES_PATH, cmake_args=cmake_args
      )
      cmake_build(cmake_args=["--target install"])
  
      # Build and install Draco in the static config for the current host machine.
      os.chdir(DRACO_STATIC_BUILD_PATH)
      cmake_args = []
      cmake_args.append(
          f"-DCMAKE_INSTALL_PREFIX={DRACO_STATIC_INSTALL_PATH}"
      )
      cmake_args.append("-DBUILD_SHARED_LIBS=OFF")
      if ENABLE_TRANSCODER:
          cmake_args.append("-DDRACO_TRANSCODER_SUPPORTED=ON")
      cmake_configure(
          source_path=DRACO_SOURCES_PATH, cmake_args=cmake_args
      )
      cmake_build(cmake_args=["--target install"])
  
      os.chdir(orig_dir)
  
file_path: open-asset-importer/contrib/draco/src/draco/tools/install_test/test.py
imports: import argparse
  import multiprocessing
  import os
  import pathlib
  import shlex
  import shutil
  import subprocess
  import sys
label_desc: Use image node_id 10 for calling a global function with example usage: build_and_install_draco() without return types