class_docstr: OSS Filesystem Tests
code: def test_is_directory(self):
      dir_path = file_io.join(self._base_dir, "test_dir")
      # Failure for a non-existing dir.
      self.assertFalse(gfile.IsDirectory(dir_path))
      gfile.MkDir(dir_path)
      self.assertTrue(gfile.IsDirectory(dir_path))
      file_path = file_io.join(str(dir_path), "test_file")
      with gfile.Open(file_path, mode="w") as f:
          f.write("testing")
      # False for a file.
      self.assertFalse(gfile.IsDirectory(file_path))
      # Test that the value returned from `stat()` has `is_directory` set.
      file_statistics = gfile.Stat(dir_path)
      self.assertTrue(file_statistics.is_directory)
  
imports: import os
  import unittest
  from tensorflow.python.framework import errors
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.platform import test
  from tensorflow.python.platform import gfile
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 24 for calling the OSSFSTest obj's underlying member method code with example usage: obj.test_is_directory() without return types