Created by: liym27
assign has supported numpy.bool after #23774, so assign(bool) can be used in test_transformer.
assign