fix(python): ensure explicit "return_dtype" is respected by map_dicts
#7221
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention