  import sys
  import time
  
  from concurrent import futures
  from json import JSONDecodeError
  
  import keras
  from keras import losses
  from keras import backend as K
  from keras.layers import Input
 
</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_from_filename </s> remove from lib.Serializer import JSONSerializer
 </s> add from lib.serializer import get_serializer </s> remove from lib.Serializer import JSONSerializer
 </s> add from lib.serializer import get_serializer
  import sys
  import time
  
  from concurrent import futures

  
  import keras
  from keras import losses
  from keras import backend as K
  from keras.layers import Input
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