code: def setUp(self):
      # Put everything in a directory so it's easier to delete w/in tests.
      self._directory = os.path.join(self.get_temp_dir(), "testdir")
      os.mkdir(self._directory)
      self._loader = directory_loader.DirectoryLoader(
          self._directory, _TimestampedByteLoader
      )
  
imports: import functools
  import glob
  import os
  import shutil
  from unittest import mock
  import tensorflow
  from tensorboard.backend.event_processing import directory_loader
  from tensorboard.backend.event_processing import directory_watcher
  from tensorboard.backend.event_processing import event_file_loader
  from tensorboard.backend.event_processing import io_wrapper
  from tensorboard.util import test_util
label_desc: Use image node_id 1 for calling the DirectoryLoaderTest obj's underlying member method code with example usage: obj.setUp() without return types