class_docstr: Class to log the benchmark information to local disk.
class_docstr_tok: ["Class","to","log","the","benchmark","information","to","local","disk","."]
code: def __init__(self, logging_dir):
      super(BenchmarkFileLogger, self).__init__()
      self._logging_dir = logging_dir
      if not tf.io.gfile.isdir(self._logging_dir):
          tf.io.gfile.makedirs(self._logging_dir)
      self._metric_file_handler = tf.io.gfile.GFile(
          os.path.join(self._logging_dir, METRIC_LOG_FILE_NAME), "a"
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import contextlib
  import datetime
  import json
  import multiprocessing
  import numbers
  import os
  import threading
  import uuid
  from six.moves import _thread
  from absl import flags
  import tensorflow
  from tensorflow.python.client import device_lib
  from utils.logs import cloud_lib
label_desc: Use image node_id 1 to create a new BenchmarkFileLogger object from inherited base classes: BaseBenchmarkLogger with example: obj = BenchmarkFileLogger(logging_dir)