def METHOD_NAME(path_to_file: str, upload: bool) -> None:
    # Create a new snapshot.
    snap = Snapshot(f"health/{SNAPSHOT_VERSION}/unaids.csv")
    # Ensure destination folder exists.
    snap.path.parent.mkdir(exist_ok=True, parents=True)
    # Get data
    df = get_all_data_from_api(path_to_file)
    with tempfile.NamedTemporaryFile(mode="w") as csvfile:
        df.to_csv(csvfile, index=False)  # type: ignore
        with open(csvfile.name) as csvfile:
            # Copy local data file to snapshots data folder.
            snap.path.write_bytes(Path(csvfile.name).read_bytes())
    # Add file to DVC and upload to S3.
    snap.dvc_add(upload=upload)