 NameError: name 'PartialState' is not defined.
I am using the following version of transformer, datasets and huggingface_hub. 

![image](https://user-images.githubusercontent.com/77198742/232941383-cc398bb4-88c0-4a12-9ff1-c59f8c5aa1a6.png)

I am running into the following error:

```sh
 NameError: name 'PartialState' is not defined.
```


How to resolve this issue  to work with my versions of the  transformer, datasets and huggingface_hub ?
My code was running just fine until yesterday.








Closing, as this issue is a duplicate of a comment on #22816, where it it being followed up on. 