code: def testRaisesDirectoryDeletedError_whenDirectoryIsDeleted(self):
      self._WriteToFile("a", "a")
      self.assertLoaderYields(["a"])
      shutil.rmtree(self._directory)
      with self.assertRaises(directory_watcher.DirectoryDeletedError):
          next(self._loader.Load())
  
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 14 for calling the DirectoryLoaderTest obj's underlying member method code with example usage: obj.testRaisesDirectoryDeletedError_whenDirectoryIsDeleted() without return types