code: def make_sure_path_exists(path):
      
      logger.debug('Making sure path exists: {}'.format(path))
      try:
          os.makedirs(path)
          logger.debug('Created directory at: {}'.format(path))
      except OSError as exception:
          if exception.errno != errno.EEXIST:
              return False
      return True
docs: Ensure that a directory exists.
  
      :param path: A directory path.