code: def testIsDirectory(self):
      dir_path = os.path.join(self._base_dir, "test_dir")
      # Failure for a non-existing dir.
      self.assertFalse(gfile.isdir(dir_path))
      gfile.makedirs(dir_path)
      self.assertTrue(gfile.isdir(dir_path))
      file_path = os.path.join(dir_path, "test_file")
      gfile.GFile(file_path, mode="w").write("test")
      # False for a file.
      self.assertFalse(gfile.isdir(file_path))
  
imports: import os.path
  from tensorboard import test
  from tensorboard.compat.tensorflow_stub import compat, errors
  from tensorboard.compat.tensorflow_stub.io import gfile
label_desc: Use image node_id 11 for calling the FileIoTest obj's underlying member method code with example usage: obj.testIsDirectory() without return types