code: def create_build_configuration():
      print()
      print("Configuring TensorFlow Addons to be built from source...")
  
      if os.path.isfile(_TFA_BAZELRC):
          os.remove(_TFA_BAZELRC)
  
      logging.disable(logging.WARNING)
  
      write_action_env("TF_HEADER_DIR", get_tf_header_dir())
      write_action_env("TF_SHARED_LIBRARY_DIR", get_tf_shared_lib_dir())
      write_action_env("TF_SHARED_LIBRARY_NAME", get_shared_lib_name())
      write_action_env("TF_CXX11_ABI_FLAG", tf.sysconfig.CXX11_ABI_FLAG)
  
      # This should be replaced with a call to tf.sysconfig if it's added
      write_action_env("TF_CPLUSPLUS_VER", get_cpp_version())
  
      write("build --spawn_strategy=standalone")
      write("build --strategy=Genrule=standalone")
      write("build  --experimental_repo_remote_exec")
      write("build -c opt")
      write(
          "build --cxxopt="
          + '"-D_GLIBCXX_USE_CXX11_ABI='
          + str(tf.sysconfig.CXX11_ABI_FLAG)
          + '"'
      )
  
      if is_windows():
          write("build --config=windows")
          write("build:windows --enable_runfiles")
          write("build:windows --copt=/experimental:preprocessor")
          write("build:windows --host_copt=/experimental:preprocessor")
          write("build:windows --copt=/arch=AVX")
          write("build:windows --cxxopt=/std:" + get_cpp_version())
          write("build:windows --host_cxxopt=/std:" + get_cpp_version())
  
      if is_macos() or is_linux():
          if (
              not is_linux_ppc64le()
              and not is_linux_arm()
              and not is_linux_aarch64()
          ):
              write("build --copt=-mavx")
          write("build --cxxopt=-std=" + get_cpp_version())
          write("build --host_cxxopt=-std=" + get_cpp_version())
  
      if os.getenv("TF_NEED_CUDA", "0") == "1":
          print("> Building GPU & CPU ops")
          configure_cuda()
      else:
          print("> Building only CPU ops")
  
      print()
      print(
          "Build configurations successfully written to",
          _TFA_BAZELRC,
          ":\n",
      )
      print(pathlib.Path(_TFA_BAZELRC).read_text())
  
imports: import os
  import pathlib
  import platform
  import logging
  import tensorflow
  from packaging.version import Version
label_desc: Use image node_id 16 for calling a global function with example usage: create_build_configuration() without return types