  import numpy as np
  import tensorflow as tf
  from tensorflow.distributions import Beta
  
  from .normalization import InstanceNormalization
  if K.backend() == "plaidml.keras.backend":
      from plaidml.op import extract_image_patches
  else:
      from tensorflow import extract_image_patches  # pylint: disable=ungrouped-imports
  
  
 
</s> remove from tensorflow.distributions import Beta
 </s> add  </s> remove from keras.layers import Lambda, concatenate
 </s> add  </s> remove 
 </s> add     from tensorflow import pad </s> remove if K.backend() == "plaidml.keras.backend":
 </s> add from lib.utils import get_backend

if get_backend() == "amd":
from lib.utils import get_backend

if get_backend() == "amd":
  import numpy as np
  import tensorflow as tf
  from tensorflow.distributions import Beta
  
from lib.utils import get_backend

if get_backend() == "amd":
from lib.utils import get_backend

if get_backend() == "amd":
      from plaidml.op import extract_image_patches
  else:
      from tensorflow import extract_image_patches  # pylint: disable=ungrouped-imports
  
  
keep keep keep keep replace replace keep keep keep keep keep
 Simple backend unit tests (#1020)

* Add simple backend tests for lib.model
* Document lib.model
* Fix GMSD Loss for AMD
* Remove obsolete code from lib.model 
lib/model/losses.py