MAINT: Fixed the return-dtype of ndarray.real
and imag
#19324
Merged
ndarray.real
and imag
#19324