code: def process_benchmarks(log_files):
      benchmarks = test_log_pb2.BenchmarkEntries()
      for f in log_files:
          content = gfile.GFile(f, "rb").read()
          if benchmarks.MergeFromString(content) != len(content):
              raise Exception(
                  "Failed parsing benchmark entry from %s" % f
              )
      return benchmarks
  
file_path: tensorflow-upstream/tensorflow/tools/test/run_and_gather_logs_lib.py
imports: import os
  import re
  import shlex
  import subprocess
  import tempfile
  import time
  from tensorflow.core.util import test_log_pb2
  from tensorflow.python.platform import gfile
  from tensorflow.tools.test import gpu_info_lib
  from tensorflow.tools.test import system_info_lib
label_desc: Use image node_id 3 for calling a global function with example usage: process_benchmarks(log_files) and returns: benchmarks