def assert_is_compatible_with(x, other):
tf.TensorShape(x).assert_is_compatible_with(other)<EOL>
Raises exception if `x` and `other` do not represent the same shape.

    This method can be used to assert that there exists a shape that both
    `x` and `other` represent.

    For more details, see `help(tf.TensorShape.assert_is_compatible_with)`.

    Args:
      x: object representing a shape; convertible to `tf.TensorShape`.
      other: object representing a shape; convertible to `tf.TensorShape`.

    Returns:
      None

    Raises:
      ValueError: If `x` and `other` do not represent the same shape.