in Synthesis_incorporation/value_search/operation_filtering.py [0:0]
def broadcastable(shape_1, shape_2):
"""Returns whether the two shapes are broadcastable."""
return (
not shape_1
or not shape_2
or all(x == y or x == 1 or y == 1 for x, y in zip(shape_1[::-1], shape_2[::-1]))
)