code: def replace_lazy_modules(module):
      if isinstance(module, Lazy):
          module = module.resolve()
      children = list(module.named_children())
      for name, child in children:
          module.add_module(name, replace_lazy_modules(child))
      return module
  
imports: import functools
  from typing import Tuple
  import torch
  from torch import nn
label_desc: Use image node_id 1 for calling a global function with example usage: replace_lazy_modules(module) and returns: module