r""" Map the leaf of the arguments into map_function(leaf).
(self, map_function: Callable)
| 262 | return self._execute_mapping(self._io_args, map_function) |
| 263 | |
| 264 | def map_leaf(self, map_function: Callable): |
| 265 | r""" |
| 266 | Map the leaf of the arguments into map_function(leaf). |
| 267 | """ |
| 268 | assert map_function != None, "map function cannot be None" |
| 269 | |
| 270 | if self._gen_name: |
| 271 | args_to_map = self._named_io_args |
| 272 | else: |
| 273 | args_to_map = self._io_args |
| 274 | |
| 275 | return self._execute_mapping(args_to_map, map_function) |
| 276 | |
| 277 | def _execute_mapping(self, value, map_function): |
| 278 | if _is_raw_type(value, tuple) or _is_raw_type(value, list): |