code: def write(content, filename='cache'):
  	
  	cache_path = get_cache_path(filename)
  	with open(cache_path, 'w') as file:
  		if content is not None:
  			json.dump(content, file, indent=3, sort_keys=True)
docs: write data to cache file
  	parameters:
  		cache_path - path to cache file
  		content - a data structure to save into cache file