Specifying download directory for custom dataset loading script

Does below still holds true for setting the dataset download path ? For me , its not changing the defauly download path.

import datasets
from pathlib import Path
datasets.config.DOWNLOADED_DATASETS_PATH = Path(“/media/avaish/Ext/datasets”)