def METHOD_NAME():
    print("Fetching CAIT data from API.")
    api_data = fetch_all_data_from_api()
    metadata = Dataset.from_yaml(Path(__file__).parent / "cait_ghg_emissions.meta.yml")
    with tempfile.TemporaryDirectory() as temp_dir:
        output_file = os.path.join(temp_dir, f"file.json.gz")
        print("Saving fetched data as a compressed temporary file.")
        save_compressed_data_to_file(data=api_data, data_file=output_file)
        add_to_catalog(metadata, output_file, upload=True)