How does one download dataset from gdrive using pytorch?

I used download_file_from_google_drive before but now I get this error:

-> starting Download
Traceback (most recent call last):
  File "download_miniImagent.py", line 53, in <module>
    download_and_extract_miniImagenet(root=root)
  File "download_miniImagent.py", line 35, in download_and_extract_miniImagenet
    from torchvision.datasets.utils import download_file_from_google_drive, extract_archive
ImportError: cannot import name 'download_file_from_google_drive' from 'torchvision.datasets.utils' (/Users/Me/anaconda3/envs/project/lib/python3.7/site-packages/torchvision/datasets/utils.py)

why?

I see it on the github:

but it’s not on my downloaded version of torchvision, why?

You can use below code with filename

download_and_extract_archive(
            url="https://drive.google.com/file/d/abc/view?usp=sharing",
            # url=f"https://drive.google.com/uc?id=1By9UUbUAyiTJ2LpX3jlsRXmYOEbMbuO8",
            download_root=self._dl_path,
            filename="archive.zip",
            remove_finished=True
        )

kindly replace your fileid