  import os
  import sys
  
  from . import __version__
  from .instance_normalization import InstanceNormalization
  
  
  if isinstance(__version__, (list, tuple)):
      version_str = ".".join([str(n) for n in __version__[1:]])
  else: 
      version_str = __version__
 
</s> remove import os
import sys
 </s> add import lib.Serializer </s> remove 
 </s> add import os
import sys </s> remove         
 </s> add         from json import JSONDecodeError
  import os
  import sys
  
  from . import __version__


  
  if isinstance(__version__, (list, tuple)):
      version_str = ".".join([str(n) for n in __version__[1:]])
  else: 
      version_str = __version__
keep keep keep keep replace replace keep keep keep keep keep
 Update Model.py (#424)

- Added saving state (currently only saved epoch number, to be extended in future)
- Changed saving to ThreadPoolExecutor 
plugins/Model_OriginalHighRes/Model.py