Unable to map folder in Kaggle for ImageClassifierData.from_names_and_array()

I am using ImageClassifierData.from_names_and_array() to set data for ConvLearner in a Kaggle kernel.

Since the auto mounted input folder is read only, I created a folder on root level for validation set but the method doesn’t allows me to map it. Below is my folder structure and code.

|–input (read-only access - kaggle provided)
-----|-- train.csv
-----|-- train_images
-----|-- test_images
|-- valid (I created)

Function expects the validation set to be inside the path specified and in this case it hits.

fnames = fnames,
classes=[‘A’, ‘B’],
tfms=tfms_from_model(arch, sz)

Any help, how to sort this out?