Fix: correctly encode/decode config in ModelHubMixin if custom coders (#2337)
* Fix: correctly encode/decode config in ModelHubMixin if custom coders
* make style
* make quality
* Update tests/test_hub_mixin_pytorch.py
Co-authored-by: Hafedh <70411813+not-lain@users.noreply.github.com>
---------
Co-authored-by: Hafedh <70411813+not-lain@users.noreply.github.com>