code: def forward(self, inputs):
      out = []
      for i, _ in enumerate(inputs):
          if isinstance(self.spatial_modulation[i], nn.ModuleList):
              out_ = inputs[i]
              for _, op in enumerate(self.spatial_modulation[i]):
                  out_ = op(out_)
              out.append(out_)
          else:
              out.append(self.spatial_modulation[i](inputs[i]))
      return out
  
imports: import numpy
  import torch
  import torch.nn
  import torch.utils.checkpoint
  import torch.nn.functional
label_desc: Use image node_id 2 for calling the SpatialModulation obj's underlying member method code with example usage: obj.forward(inputs) and returns: out