"Failed test case: has incorrect type" on all graded functions

There is a problem with all graded functions, the submission show always the following error:
Failed test case: (for every graded function) has incorrect type.
as shown in following image. I have compared the file for every change and there is nothing different with empty .ipynb file except the code inside graded functions which I am pretty confident are right, please help me to solve this, thanks in advance.

[code removed - moderator]

I have used a fresh assignment file and regraded and finally get 98/100, not sure if the file is corrupt or maybe something is different inside the ipynb file but I have also compared line by line the files and suddenly this is correctly graded, following the attachment with correctly graded file.
another difference is that the correctly graded file does not be executed before submit, maybe this could be another key feature to correctly graded function.

[code removed - moderator]

There is a bug in split_data logic. The file size should be checked before train / validation split.
Please don’t forget to share the grader feedback (i.e. output) on the post when in doubt.

the file size check is already done in this fragment of code (if siz==0:), just before the split on training and validation files, please let me know if you are disagree, but this is not related with originally posted question, but thanks for reply.

[code removed - moderator]

Assume you have 10 image files with names 0.jpg, 1.jpg, … 9.jpg out of which 0.jpg, 1.jpg, … 4.jpg have zero size. How should you split this with a split size of .8?

with this function you can get a sample of items from a list
train_num_items = int(round(len_dir * SPLIT_SIZE, 0))
training_list = random.sample(list_dir, train_num_items)

Please provide the following:

  1. Outcome for the case I described.
  2. Outcome of your implementation.

Hi,

I am facing the same issue. How do I resolve it ?

Did you get a fresh copy of the assignment and try again?

Thanks a lot. This worked.