class_docstr: [summary]
  
  Args:
    test {[type]} -- [description]
docstr: Test is directory.
docstr_tok: ["Test","is","directory","."]
code: def test_is_directory(self):
      """Test is directory."""
      # Setup and check preconditions.
      dir_name = self._path_to("isdir/1")
      file_name = self._path_to("isdir/2")
      with tf.io.gfile.GFile(file_name, "w") as w:
          w.write("")
      tf.io.gfile.mkdir(dir_name)
      # Check that directory is a directory.
      self.assertTrue(tf.io.gfile.isdir(dir_name))
      # Check that file is not a directory.
      self.assertFalse(tf.io.gfile.isdir(file_name))
  
imports: import os
  import subprocess
  import sys
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 9 for calling the AZFSTestBase obj's underlying member method code with example usage: obj.test_is_directory() without return types