code: def test_auto_flush(self):
      tmp_dir = pathlib.Path(self.create_tempdir().full_path)
      summary_writer = SummaryWriter(tmp_dir, auto_flush=True)
      summary_writer.scalar("metric", 123, 1)
      filesize_before_flush = _disk_usage(tmp_dir)
      summary_writer.flush()
      filesize_after_flush = _disk_usage(tmp_dir)
      self.assertEqual(filesize_before_flush, filesize_after_flush)
  
imports: import itertools
  import pathlib
  import tempfile
  import numpy
  import tensorflow
  from absl.testing import absltest
  from tensorboard.backend.event_processing import directory_watcher, event_file_loader
  from tensorboard.util import tensor_util
  from flax.metrics.tensorboard import SummaryWriter, _flatten_dict
label_desc: Use image node_id 17 for calling the TensorboardTest obj's underlying member method code with example usage: obj.test_auto_flush() without return types