code: def testLoad_detectFileReplacement_reopensIteratorAfterFileGrows(
      self,
  ):
      self._append_record(_make_event(wall_time=1.0))
      loader = self._make_loader(detect_file_replacement=True)
      self._append_record(_make_event(wall_time=2.0))
      self.assertEventWallTimes(loader.Load(), [1.0, 2.0])
      self.assertEventWallTimes(loader.Load(), [])
      # Remove original file; replace it with a file containing 1 additional
      # event. Without detect_file_replacement=True, we don't detect the new data.
      os.remove(self._get_filename())
      self._append_record(_make_event(wall_time=1.0))
      self._append_record(_make_event(wall_time=2.0))
      self._append_record(_make_event(wall_time=3.0))
      self.assertEventWallTimes(loader.Load(), [3.0])
  
imports: import abc
  import io
  import os
  import unittest
  from unittest import mock
  from tensorboard import test
  from tensorboard.backend.event_processing import event_file_loader
  from tensorboard.compat import tf
  from tensorboard.compat.proto import event_pb2
  from tensorboard.summary.writer import record_writer
label_desc: Use image node_id 12 for calling the EventFileLoaderTestBase obj's underlying member method code with example usage: obj.testLoad_detectFileReplacement_reopensIteratorAfterFileGrows() without return types