Untar_data requires .tgz file ending

Thanks for your contribution, but I have similar issue with ‘imdb_sample.tgz
I tried open it with several ways such as:
1.
tarred_file = tarfile.open(‘C:/Users/Hagar/.fastai/data/imdb_sample.tgz’)
tarred_file.extractall(path=‘C:/Users/Hagar/.fastai/data/imdb_sample.tgz’)
gives me error : ‘file could not be opened successfully

2.data_lm = load_data(path, bs=bs)
gives me error : ‘name ‘load_data’ is not defined

3.df = pd.read_csv(path/‘texts.csv’)
gives me error :
FileNotFoundError: [Errno 2] File C:\Users\Hagar.fastai\data\imdb_sample.tgz\texts.csv does not exist: 'C:\Users\Hagar\.fastai\data\imdb_sample.tgz\texts.csv’

Do you know any solution to open this tgz file?