code: def dump_dict_to_file(dictionary, filepath):
      
      create_dirs(
          os.path.dirname(filepath)
      )
  
      with open(filepath, 'a') as outfile:
          json.dump(dictionary, outfile)
          outfile.write('\n')
docs: Dump @dictionary as a line to @filepath.