code: def build(args) -> None:
      """Build using CMake"""
      venv_exe = shutil.which("virtualenv")
      pyexe = shutil.which(args.pyexe)
      if not venv_exe:
          logging.warn(
              "virtualenv wasn't found in path, it's recommended to install virtualenv to manage python environments"
          )
      if not pyexe:
          logging.warn(
              "Python executable %s not found in path", args.pyexe
          )
      if args.cmake_options:
          cmake = CMake(args.cmake_options)
      else:
          cmake = CMake()
      cmake()
      create_virtualenv_default()
      provision_virtualenv()
  
imports: import argparse
  import os
  import sys
  from subprocess import check_call
  import shlex
  from ci.util import retry, remember_cwd
  from typing import List
  from collections import OrderedDict
  import logging
  import yaml
  import shutil
label_desc: Use image node_id 8 for calling a global function with example usage: build(args) without return types