code: def _assert_broadcast_with_unknown_dims(
      self, expected, shape1, shape2
  ):
      actual_dims = common_shapes.broadcast_shape(shape1, shape2).dims
      reflexive_actual_dims = common_shapes.broadcast_shape(
          shape2, shape1
      ).dims
  
      if actual_dims is None:
          self.assertIsNone(reflexive_actual_dims)
      elif reflexive_actual_dims is None:
          self.assertIsNone(actual_dims)
      else:
          self.assertEqual(len(actual_dims), len(reflexive_actual_dims))
          for actual_dim, reflexive_actual_dim in zip(
              actual_dims, reflexive_actual_dims
          ):
              self.assertEqual(
                  actual_dim.value, reflexive_actual_dim.value
              )
  
      expected_dims = expected.dims
      if expected_dims is None:
          self.assertIsNone(actual_dims)
      elif actual_dims is None:
          self.assertIsNone(expected_dims)
      else:
          self.assertEqual(len(expected_dims), len(actual_dims))
          for expected_dim, actual_dim in zip(
              expected_dims, actual_dims
          ):
              self.assertEqual(expected_dim.value, actual_dim.value)
  
file_path: tensorflow/tensorflow/python/framework/common_shapes_test.py
imports: import numpy
  from tensorflow.python.framework import common_shapes
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 5 for calling the CommonShapesTest obj's underlying member method code with example usage: obj._assert_broadcast_with_unknown_dims(expected, shape1, shape2) without return types