code: def is_compatible_with(x, other):
      """Returns `True` iff `x` is compatible with `other`.
  
      For more details, see `help(tf.TensorShape.is_compatible_with)`.
  
      Args:
        x: object representing a shape; convertible to `tf.TensorShape`.
        other: object representing a shape; convertible to `tf.TensorShape`.
  
      Returns:
        is_compatible: `bool` indicating of the shapes are compatible.
      """
      return tf.TensorShape(x).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 8 for calling a global function with example usage: is_compatible_with(x, other) and returns: tf