code: def _create_logdir_loader(self, logdir):
      def directory_loader_factory(path):
          return directory_loader.DirectoryLoader(
              path,
              event_file_loader.TimestampedEventFileLoader,
              path_filter=io_wrapper.IsTensorFlowEventsFile,
          )
  
      return logdir_loader.LogdirLoader(
          logdir, directory_loader_factory
      )
  
file_path: tensorboard/tensorboard/uploader/logdir_loader_test.py
imports: import os.path
  import shutil
  from tensorboard.uploader import logdir_loader
  from tensorboard import test
  from tensorboard.backend.event_processing import directory_loader
  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 LogdirLoaderTest obj's underlying member method code with example usage: obj._create_logdir_loader(logdir) and returns: logdir_loader, directory_loader