message: if condition modified
  if condition modified to not use the else part
diff: @@ -1737,9 +1737,7 @@ def convert_image_dtype(image, dtype, saturate=False, name=None):
  """
  image = ops.convert_to_tensor(image, name='image')
  dtype = tf.dtypes.as_dtype(dtype)
  - if dtype.is_floating or dtype.is_integer:
  - pass
  - else:
  + if not dtype.is_floating and not dtype.is_integer:
  raise AttributeError("dtype must be either floating point or integer")
  if dtype == image.dtype:
  return array_ops.identity(image, name=name)
  