text: 
  import os
  import errno
  
  def _mkdir_p(path):
      """
      _mkdir_p: make directory for given path
      """
      if not path:
          return
      try:
          os.makedirs(path)
      except OSError as exc:
          if exc.errno == errno.EEXIST and os.path.isdir(path):
              pass
          else:
              raise