expr = ia.expr_from_udf(filter_func, [rand_data], [shape[0], shape[1], True]) circle = expr.eval()