[Datasets] Allow MultiHotEncoder
to encode arrays
#31365
Merged
MultiHotEncoder
to encode arrays
#31365