docs: def process_lpd(name, dir_tmp):
      """
      Opens up json file, invokes doi_resolver, closes file, updates changelog, cleans directory, and makes new bag.
      :param str name: Name of current .lpd file
      :param str dir_tmp: Path to tmp directory
      :return none:
      """
      logger_doi_main.info("enter process_lpd")
      dir_root = os.getcwd()
      dir_bag = os.path.join(dir_tmp, name)
      dir_data = os.path.join(dir_bag, 'data')
  
      # Navigate down to jLD file
      # dir : dir_root -> dir_data
      os.chdir(dir_data)
  
      # Open jld file and read in the contents. Execute DOI Resolver.
      jld_data = read_json_from_file(os.path.join(dir_data, name + '.jsonld'))
  
      # Overwrite data with new data
      jld_data = DOIResolver(dir_root, name, jld_data).main()
      # Open the jld file and overwrite the contents with the new data.
      write_json_to_file(jld_data)
  
      # Open changelog. timestamp it. Prompt user for short description of changes. Close and save
      # update_changelog()
  
      # Delete old bag files, and move files to bag root for re-bagging
      # dir : dir_data -> dir_bag
      dir_cleanup(dir_bag, dir_data)
      finish_bag(dir_bag)
  
      logger_doi_main.info("exit process_lpd")
      return