for t in [‘train’,‘valid’]:
for folder in [‘dog/’,‘cat/’]:
os.mkdir(os.path.join(path,t,folder))
    for i in shuffle[:2000]:
        #shutil.copyfile(files[i],'../chapter3/dogsandcats/valid/')
        folder = files[i].split('/')[-1].split('.')[0]
        image = files[i].split('/')[-1]
        os.rename(files[i],os.path.join(path,'valid',folder,image))

for i in shuffle[2000:]:
#shutil.copyfile(files[i],’/dogsandcats/all/valid/’)
folder = files[i].split(’/’)[-1].split(’.’)[0]
image = files[i].split(’/’)[-1]
os.rename(files[i],os.path.join(path,‘train’,folder,image))
if torch.cuda.is_available():
is_cuda = True
simple_transform=transforms.Compose([transforms.Resize((224,224)),
transforms.ToTensor(),
transforms.Normalize([0.485, 0.456,
0.406,],[0.229, 0.224, 0.225])])
train = ImageFolder(’/home/akb/pytorch_learning/dogsandcats/all/train/’,simple_transform)
valid = ImageFolder(’/home/akb/pytorch_learning/dogsandcats/all/valid/’,simple_transform)
i am working on kaggle dogs vs cats data sets. but getting this error, can anyone help me out. thanks in advance