code: def set_clang_cuda_compiler_path(environ_cp):
      """Set CLANG_CUDA_COMPILER_PATH."""
      default_clang_path = which("clang") or ""
      ask_clang_path = (
          "Please specify which clang should be used as device and "
          "host compiler. [Default is %s]: "
      ) % default_clang_path
  
      while True:
          clang_cuda_compiler_path = get_from_env_or_user_or_default(
              environ_cp,
              "CLANG_CUDA_COMPILER_PATH",
              ask_clang_path,
              default_clang_path,
          )
          if os.path.exists(clang_cuda_compiler_path):
              break
  
          # Reset and retry
          print(
              "Invalid clang path: %s cannot be found."
              % clang_cuda_compiler_path
          )
          environ_cp["CLANG_CUDA_COMPILER_PATH"] = ""
  
      # Set CLANG_CUDA_COMPILER_PATH
      environ_cp["CLANG_CUDA_COMPILER_PATH"] = clang_cuda_compiler_path
      write_action_env_to_bazelrc(
          "CLANG_CUDA_COMPILER_PATH", clang_cuda_compiler_path
      )
  
imports: import argparse
  import os
  import pathlib
  import platform
  import re
  import subprocess
  import sys
label_desc: Use image node_id 23 for calling a global function with example usage: set_clang_cuda_compiler_path(environ_cp) without return types