Fix sphinx autodocs using MagicMock
Fix sphinx autodocs using MagicMock