
'''
	python3 insurance.py besties/supp_NIH/nature/_status/other/status_chia_seeds_214893.py
'''


#----
#
import goodest.besties.supp_NIH.nature_v2 as supp_NIH_nature_v2
import goodest.besties.supp_NIH.examples as NIH_examples
#
import json
import rich
#
#----

def check_1 ():	
	supp_1 = supp_NIH_nature_v2.create (
		NIH_examples.retrieve ("other/chia_seeds_214893.JSON")
	)
	
	def add (path, data):
		import pathlib
		from os.path import dirname, join, normpath
		this_directory = pathlib.Path (__file__).parent.resolve ()
		example_path = normpath (join (this_directory, path))
		FP = open (example_path, "w")
		FP.write (data)
		FP.close ()
		
	add ("chia_seeds_214893_nature.JSON", json.dumps (supp_1, indent = 4))
	
	return;
	
checks = {
	"check 1": check_1
}