Ray
Get the state of the callback.
This method should be implemented by subclasses to restore the callback’s state based on the given dict state.
state – State of the callback.