code: def build_headers(output_dir):
      """Builds the headers files for TF."""
      os.makedirs(output_dir, exist_ok=True)
  
      # `$ yes | configure`
      yes = subprocess.Popen(["yes", ""], stdout=subprocess.PIPE)
      configure = subprocess.Popen(
          [TENSORFLOW_ROOT / "configure"],
          stdin=yes.stdout,
          cwd=TENSORFLOW_ROOT,
      )
      configure.communicate()
  
      subprocess.check_call(
          ["bazel", "build", "tensorflow/cc:cc_ops"],
          cwd=TENSORFLOW_ROOT,
      )
      subprocess.check_call(
          [
              "cp",
              "--dereference",
              "-r",
              "bazel-bin",
              output_dir / "bazel-genfiles",
          ],
          cwd=TENSORFLOW_ROOT,
      )
  
imports: import os
  import pathlib
  import subprocess
  from absl import app
  from absl import flags
label_desc: Use image node_id 1 for calling a global function with example usage: build_headers(output_dir) without return types