def wrap_once(self, LayoutClass, *args, **kwargs):
def wrap_object_once(layout_object, j):<EOL><INDENT>if not isinstance(layout_object, LayoutClass):<EOL><INDENT>layout_object.fields[j] = self.wrapped_object(<EOL>LayoutClass, layout_object.fields[j], *args, **kwargs<EOL>)<EOL><DEDENT><DEDENT>self.pre_map(wrap_object_once)<EOL>
Wraps every layout object pointed in `self.slice` under a `LayoutClass` instance with
`args` and `kwargs` passed, unless layout object's parent is already a subclass of
`LayoutClass`.