  from keras.layers import Input
  from keras.models import load_model, Model
  from keras.utils import get_custom_objects, multi_gpu_model
  
  from lib import Serializer
  from lib.model.backup_restore import Backup
  from lib.model.losses import (DSSIMObjective, PenalizedLoss, gradient_loss, mask_loss_wrapper,
                                generalized_loss, l_inf_norm, gmsd_loss, gaussian_blur)
  from lib.model.nn_blocks import NNBlocks
  from lib.model.optimizers import Adam
 
</s> remove from json import JSONDecodeError
 </s> add  </s> remove from lib import Serializer
 </s> add from lib.serializer import get_serializer_from_filename </s> remove from lib import Serializer
 </s> add from lib.serializer import get_serializer </s> remove from lib import Serializer
 </s> add from lib.serializer import get_serializer </s> remove from lib import Serializer
 </s> add from lib.serializer import get_serializer, get_serializer_from_filename
from lib.serializer import get_serializer
  from keras.layers import Input
  from keras.models import load_model, Model
  from keras.utils import get_custom_objects, multi_gpu_model
  
from lib.serializer import get_serializer
  from lib.model.backup_restore import Backup
  from lib.model.losses import (DSSIMObjective, PenalizedLoss, gradient_loss, mask_loss_wrapper,
                                generalized_loss, l_inf_norm, gmsd_loss, gaussian_blur)
  from lib.model.nn_blocks import NNBlocks
  from lib.model.optimizers import Adam
keep keep keep keep replace keep keep keep keep keep
 Standardize serialization (#903)

* Standardize serialization

- Linting
- Standardize serializer use throughout code
- Extend serializer to load and save files
- Always load and save in utf-8
- Create documentation 
plugins/train/model/_base.py