If you have ran all the above cells and still getting this error, then you might deleted/modified the cell that import or define that function. Check this post to get a fresh copy of your notebook and do your code again.
If you have ran all the above cells and still getting this error, then you might deleted/modified the cell that import or define that function. Check this post to get a fresh copy of your notebook and do your code again.