DOC: Improve documentation for remap_legacy_layer_types function (#48651)
* DOC: Improve documentation for remap_legacy_layer_types function
* fix: remove trailing whitespace from blank lines in docstring
ruff's W293 flagged three blank lines inside the remap_legacy_layer_types
docstring that carried indentation-width trailing whitespace instead of
being empty. Made them genuinely empty.
* Apply review suggestions to remap_legacy_layer_types docstring
---------
Co-authored-by: Mathew Kadambatt <mathew.kadambatt@walmart.com>