*{moderator edit - solution code removed}*

```
return inference_model
```

AssertionError Traceback (most recent call last)

in

3 # UNIT TEST

4 inference_summary = summary(inference_model)

----> 5 comparator(inference_summary, music_inference_model_out)

~/work/W1A3/test_utils.py in comparator(learner, instructor)

16 def comparator(learner, instructor):

17 if len(learner) != len(instructor):

—> 18 raise AssertionError(“Error in test. The lists contain a different number of elements”)

19 for index, a in enumerate(instructor):

20 b = learner[index]

AssertionError: Error in test. The lists contain a different number of elements