code: def testPathFilter(self):
      self._loader = directory_loader.DirectoryLoader(
          self._directory,
          _TimestampedByteLoader,
          lambda path: "tfevents" in path,
      )
      self._WriteToFile("skipped", "a")
      self._WriteToFile("event.out.tfevents.foo.bar", "b")
      self._WriteToFile("tf.event", "c")
      self.assertLoaderYields(["b"])
  
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 9 for calling the DirectoryLoaderTest obj's underlying member method code with example usage: obj.testPathFilter() without return types