def _shapes_are_broadcast_compatible(shapes):
    accumulator = onp.zeros([])
    for shape in shapes:
        try:
            accumulator = (accumulator + onp.zeros(shape))
        except ValueError:
            return False
    return True
def _shapes_are_broadcast_compatible(shapes):
    accumulator = onp.zeros([])
    for shape in shapes:
        try:
            accumulator = (accumulator + onp.zeros(shape))
        except ValueError:
            return False
    return True