Problems with Ray Datasets Library

Hello, I was reading the book “Learning Ray Flexible Distributed Python for Machine Learning” and there is a code that I have problems with, it is this: ValueError: Error validating 0: Standalone Python objects are not allowed in Ray 2.5. To return Python objects from map(), wrap them in a dict, e.g., return {'item': item} instead of just item.


I tried to search for information but it is scarce, so if you could help me I would appreciate it.
I’m using the latest version of Ray, have the Ray libraries used in the book disappeared?

Can you share your complete script so we can try and repro and debug @nimito ?