def METHOD_NAME(self):
    def check(shape1, shape2):
        a = gen_data(shape1)
        b = gen_data(shape2)
        aa,bb = np.broadcast_arrays(a, b)
        if self.use_shape:
            ja = jt.ops.broadcast(a, shape2).data
        else:
            ja = jt.ops.broadcast_var(a, b).data
        assert ja.shape == aa.shape and (ja==aa).all(), f"{ja}, {aa}"
    check([1], [3])
    check([3,1], [3])
    check([3,1,3], [1,3,1])
    check([2,3,4], [2,3,4,1,1,1])
    check([2,3], [2,3,1,1])
    check([2,1,3,1,4], [1,3,4])
    expect_error(lambda: jt.ops.broadcast_var([1,2],[1,2,3]))