We have used Hugging Face's dataset package to directly load the AG_News dataset from Hugging Face repository. We have used the following code to load the dataset:

from datasets import load_dataset

dataset = load_dataset("ag_news")