code: def get_module_duration(module):
      duration = module.__duration__
      if duration == 0:  # e.g. ModuleList
          for m in module.children():
              duration += m.__duration__
      return duration
  
imports: import time
  import torch
  import torch.nn
  import torch.nn.functional
  from functools import partial
  from typing import List, Optional
  from collections import OrderedDict
  import numpy
label_desc: Use image node_id 44 for calling a global function with example usage: get_module_duration(module) and returns: duration