code: def maybe_create_dir(dirname):
      """Creates directory if doesn't exist"""
      if not tf.gfile.IsDirectory(dirname):
          tf.gfile.MakeDirs(dirname)
          return True
      return False
  
file_path: texar/texar/tf/utils/utils_io.py
imports: from io import open
  import os
  import importlib
  import yaml
  import tensorflow
label_desc: Use image node_id 6 for calling a global function with example usage: maybe_create_dir(dirname) and returns: False, True