code: def get_module_macs(module):
      sum = module.__macs__
      # iterate over immediate children modules
      for child in module.children():
          sum += get_module_macs(child)
      return sum
  
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 43 for calling a global function with example usage: get_module_macs(module) and returns: sum