old_contents: import os
  
  # ==============================================================================
  #                                                                 MAYBE_MAKE_DIR
  # ==============================================================================
  def maybe_make_dir(path):
      """ Checks if a directory path exists on the system, if it does not, then
          it creates that directory (and any parent directories needed to
          create that directory)
      """
      if not os.path.exists(path):
          os.makedirs(path)
  
  
  
new_contents: import os
  
  # ==============================================================================
  #                                                                 MAYBE_MAKE_DIR
  # ==============================================================================
  def maybe_make_dir(path):
      """ Checks if a directory path exists on the system, if it does not, then
          it creates that directory (and any parent directories needed to
          create that directory)
      """
      if not os.path.exists(path):
          os.makedirs(path)
  
  
  # ==============================================================================
  #                                                                     GET_PARDIR
  # ==============================================================================
  def get_pardir(file):
      """ Given a file path, it returns the parent directory of that file. """
      return os.path.dirname(file)
  
  
  
subject: Add get_pardir()