code: def testRaisesWithBadArguments(self):
      with self.assertRaises(ValueError):
          directory_loader.DirectoryLoader(None, lambda x: None)
      with self.assertRaises(ValueError):
          directory_loader.DirectoryLoader("dir", None)
  
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 4 for calling the DirectoryLoaderTest obj's underlying member method code with example usage: obj.testRaisesWithBadArguments() without return types