code: def gather_build_configuration():
      build_config = test_log_pb2.BuildConfiguration()
      build_config.mode = FLAGS.compilation_mode
      # Include all flags except includes
      cc_flags = [
          flag
          for flag in shlex.split(FLAGS.cc_flags)
          if not flag.startswith("-i")
      ]
      build_config.cc_flags.extend(cc_flags)
      return build_config
  
file_path: tensorflow-upstream/tensorflow/tools/test/run_and_gather_logs.py
imports: import os
  import shlex
  import sys
  import time
  from absl import app
  from absl import flags
  from google.protobuf import json_format
  from google.protobuf import text_format
  from tensorflow.core.util import test_log_pb2
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
  from tensorflow.tools.test import run_and_gather_logs_lib
label_desc: Use image node_id 1 for calling a global function with example usage: gather_build_configuration() and returns: build_config