TypeError: 'NoneType' object is not iterable help

dls = DataBlock(
blocks=(ImageBlock, CategoryBlock),
get_items=get_image_files,
splitter=RandomSplitter(valid_pct=0.2, seed=42),
get_y=parent_label,
item_tfms=[Resize(192, method=‘squish’)]
).dataloaders(path, bs=32)

dls.show_batch(max_n=6)

I am getting no type error in this code I wrote, how do I fix it?

Hi @hzvolkan

Try to run get_image_files(path) and see what it returns, it probably returns None.