def METHOD_NAME(self):
    model_context = create_model_context(data_size=4, batch_size=1)
    model = model_context.model
    need_ignore_modulse = [model.linear]
    # using deepcopy will cause ignore_modules no work
    ignore_modules = copy.deepcopy(need_ignore_modulse)
    found = False
    # simulate the behavior of _recursive_wrap
    for _, child in model.named_modules():
        if child in ignore_modules:
            found = True
    self.assertFalse(found)
    ignore_modules = copy.copy(need_ignore_modulse)
    found = False
    for _, child in model.named_modules():
        if child in ignore_modules:
            found = True
    self.assertTrue(found)