create_train_val_dirs should create the actual directories and not just the paths. Please use the appropriate function inside the os module to create the required directories.
There’s a hint in the notebook where the cell following the function create_train_val_dirs contains code to print the directory structure. Your execution results don’t match the expected directory structure.