// Load .tar.gz file
if featurizer.__class__.__name__ in supported_featurizers:
dataset_file = os.path.join(data_dir, "mp_formation_energy.tar.gz")
deepchem.utils.untargz_file(dataset_file, dest_dir=data_dir)
dataset_file = os.path.join(data_dir, "mp_formation_energy.json")
if not os.path.exists(dataset_file):
deepchem.utils.download_url(url=MPFORME_URL, dest_dir=data_dir)
deepchem.utils.untargz_file(
os.path.join(data_dir, "mp_formation_energy.tar.gz"), data_dir)
// Changer loader to match featurizer and data file type