Returns whether the path is a directory or not.
tf.compat.v1.gfile.IsDirectory( dirname )
dirname
True, if the path is a directory; False otherwise