1- create account
2- get the json file
3- upload it to colab
4- run the following
!mkdir -p ~/.kaggle #will make the kaggle directory
!cp kaggle.json ~/.kaggle/ #will copy the json file to the path
!kaggle datasets download -d nunenuh/pytorch-challange-flower-dataset #based on the dataset which you want #this will download the dataset
then you can unzip it by using just !unzip 'the directory '