extract_patches
extract_patches(
params: collections.abc.Mapping[str, Any] ,
)-> ‘tuple[dict[str, Any], list]’
Return parameters with each patch replaced by a marker, and the patches.
One walk, in the order the encoder writes – mapping keys sorted, sequences as given – numbers the markers and orders the patches, so a marker always points at the input which filled that argument.