def wrap(self, LayoutClass, *args, **kwargs):
def wrap_object(layout_object, j):<EOL><INDENT>layout_object.fields[j] = self.wrapped_object(<EOL>LayoutClass, layout_object.fields[j], *args, **kwargs<EOL>)<EOL><DEDENT>self.pre_map(wrap_object)<EOL>
Wraps every layout object pointed in `self.slice` under a `LayoutClass` instance with
`args` and `kwargs` passed.