code: def forward(self, input):
      try:
          with LightwoodAutocast():
              output = self.net(input)
      except Exception as e:
          # Data parallel error
          if "nccl" in str(e).lower():
              self.dp_wrapper_net = self.net
              log.warn(f"Data parallel not working: {e}")
          else:
              raise e
  
      return output
  
file_path: lightwood/lightwood/mixer/helpers/residual_net.py
imports: from typing import List
  import torch
  from torch import nn
  from lightwood.helpers.torch import LightwoodAutocast
  from lightwood.helpers.device import get_device_from_name, get_devices
  from lightwood.helpers.log import log
label_desc: Use image node_id 3 for calling the ResidualNet obj's underlying member method code with example usage: obj.forward(input) and returns: output