code: def _IsDirectory(parent, item):
      """Helper that returns if parent/item is a directory."""
      return tf.io.gfile.isdir(os.path.join(parent, item))
  
imports: import os.path
  from tensorboard.compat import tf
label_desc: Use image node_id 1 for calling a global function with example usage: _IsDirectory(parent, item) and returns: tf