code: def assert_is_compatible_with(x, other):
      """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.
      """
      tf.TensorShape(x).assert_is_compatible_with(other)
  
file_path: probability/tensorflow_probability/python/internal/tensorshape_util.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_util
label_desc: Use image node_id 4 for calling a global function with example usage: assert_is_compatible_with(x, other) without return types